aboutsummaryrefslogtreecommitdiffstats
path: root/pf4j/src/test
diff options
context:
space:
mode:
authorDecebal Suiu <decebal.suiu@gmail.com>2017-09-20 16:55:30 +0200
committerGitHub <noreply@github.com>2017-09-20 16:55:30 +0200
commit5916ee64d9c05a4f085f6f6562ed383ff3203e4a (patch)
tree0255541afe778984d2becf450ecbb90d97e595d7 /pf4j/src/test
parentb8cd3af90f8149e5003ea1db395d67b0fa8f7066 (diff)
downloadpf4j-5916ee64d9c05a4f085f6f6562ed383ff3203e4a.tar.gz
pf4j-5916ee64d9c05a4f085f6f6562ed383ff3203e4a.zip
Change root package from ro.fortsoft.pf4j to org.pf4j (#168)
Diffstat (limited to 'pf4j/src/test')
-rw-r--r--pf4j/src/test/java/org/pf4j/AbstractExtensionFinderTest.java (renamed from pf4j/src/test/java/ro/fortsoft/pf4j/AbstractExtensionFinderTest.java)22
-rw-r--r--pf4j/src/test/java/org/pf4j/DefaultExtensionFactoryTest.java (renamed from pf4j/src/test/java/ro/fortsoft/pf4j/DefaultExtensionFactoryTest.java)6
-rw-r--r--pf4j/src/test/java/org/pf4j/DefaultPluginFactoryTest.java (renamed from pf4j/src/test/java/ro/fortsoft/pf4j/DefaultPluginFactoryTest.java)10
-rw-r--r--pf4j/src/test/java/org/pf4j/DefaultPluginManagerTest.java (renamed from pf4j/src/test/java/ro/fortsoft/pf4j/DefaultPluginManagerTest.java)2
-rw-r--r--pf4j/src/test/java/org/pf4j/DefaultPluginRepositoryTest.java (renamed from pf4j/src/test/java/ro/fortsoft/pf4j/DefaultPluginRepositoryTest.java)2
-rw-r--r--pf4j/src/test/java/org/pf4j/DefaultPluginStatusProviderTest.java (renamed from pf4j/src/test/java/ro/fortsoft/pf4j/DefaultPluginStatusProviderTest.java)4
-rw-r--r--pf4j/src/test/java/org/pf4j/DefaultVersionManagerTest.java (renamed from pf4j/src/test/java/ro/fortsoft/pf4j/DefaultVersionManagerTest.java)2
-rw-r--r--pf4j/src/test/java/org/pf4j/DependencyResolverTest.java (renamed from pf4j/src/test/java/ro/fortsoft/pf4j/DependencyResolverTest.java)2
-rw-r--r--pf4j/src/test/java/org/pf4j/ExtensionAnnotationProcessorTest.java (renamed from pf4j/src/test/java/ro/fortsoft/pf4j/ExtensionAnnotationProcessorTest.java)4
-rw-r--r--pf4j/src/test/java/org/pf4j/LegacyExtensionStorageTest.java (renamed from pf4j/src/test/java/ro/fortsoft/pf4j/LegacyExtensionStorageTest.java)10
-rw-r--r--pf4j/src/test/java/org/pf4j/LoadPluginsTest.java (renamed from pf4j/src/test/java/ro/fortsoft/pf4j/LoadPluginsTest.java)6
-rw-r--r--pf4j/src/test/java/org/pf4j/ManifestPluginDescriptorFinderTest.java (renamed from pf4j/src/test/java/ro/fortsoft/pf4j/ManifestPluginDescriptorFinderTest.java)34
-rw-r--r--pf4j/src/test/java/org/pf4j/PluginDependencyTest.java (renamed from pf4j/src/test/java/ro/fortsoft/pf4j/PluginDependencyTest.java)2
-rw-r--r--pf4j/src/test/java/org/pf4j/PropertiesPluginDescriptorFinderTest.java (renamed from pf4j/src/test/java/ro/fortsoft/pf4j/PropertiesPluginDescriptorFinderTest.java)14
-rw-r--r--pf4j/src/test/java/org/pf4j/plugin/AnotherFailTestPlugin.java (renamed from pf4j/src/test/java/ro/fortsoft/pf4j/plugin/AnotherFailTestPlugin.java)4
-rw-r--r--pf4j/src/test/java/org/pf4j/plugin/FailTestExtension.java (renamed from pf4j/src/test/java/ro/fortsoft/pf4j/plugin/FailTestExtension.java)4
-rw-r--r--pf4j/src/test/java/org/pf4j/plugin/FailTestPlugin.java (renamed from pf4j/src/test/java/ro/fortsoft/pf4j/plugin/FailTestPlugin.java)2
-rw-r--r--pf4j/src/test/java/org/pf4j/plugin/MockPluginManager.java (renamed from pf4j/src/test/java/ro/fortsoft/pf4j/plugin/MockPluginManager.java)10
-rw-r--r--pf4j/src/test/java/org/pf4j/plugin/TestExtension.java (renamed from pf4j/src/test/java/ro/fortsoft/pf4j/plugin/TestExtension.java)4
-rw-r--r--pf4j/src/test/java/org/pf4j/plugin/TestExtensionPoint.java (renamed from pf4j/src/test/java/ro/fortsoft/pf4j/plugin/TestExtensionPoint.java)4
-rw-r--r--pf4j/src/test/java/org/pf4j/plugin/TestPlugin.java (renamed from pf4j/src/test/java/ro/fortsoft/pf4j/plugin/TestPlugin.java)6
-rw-r--r--pf4j/src/test/java/org/pf4j/util/FileUtilsTest.java (renamed from pf4j/src/test/java/ro/fortsoft/pf4j/util/FileUtilsTest.java)2
-rw-r--r--pf4j/src/test/resources/log4j.properties12
23 files changed, 84 insertions, 84 deletions
diff --git a/pf4j/src/test/java/ro/fortsoft/pf4j/AbstractExtensionFinderTest.java b/pf4j/src/test/java/org/pf4j/AbstractExtensionFinderTest.java
index 47a1b20..9e1c40e 100644
--- a/pf4j/src/test/java/ro/fortsoft/pf4j/AbstractExtensionFinderTest.java
+++ b/pf4j/src/test/java/org/pf4j/AbstractExtensionFinderTest.java
@@ -13,13 +13,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package ro.fortsoft.pf4j;
+package org.pf4j;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
-import ro.fortsoft.pf4j.plugin.FailTestPlugin;
-import ro.fortsoft.pf4j.plugin.TestExtensionPoint;
+import org.pf4j.plugin.FailTestPlugin;
+import org.pf4j.plugin.TestExtensionPoint;
import java.util.Collections;
import java.util.HashSet;
@@ -101,8 +101,8 @@ public class AbstractExtensionFinderTest {
Map<String, Set<String>> entries = new LinkedHashMap<>();
Set<String> bucket = new HashSet<>();
- bucket.add("ro.fortsoft.pf4j.plugin.TestExtension");
- bucket.add("ro.fortsoft.pf4j.plugin.FailTestExtension");
+ bucket.add("org.pf4j.plugin.TestExtension");
+ bucket.add("org.pf4j.plugin.FailTestExtension");
entries.put(null, bucket);
return entries;
@@ -126,11 +126,11 @@ public class AbstractExtensionFinderTest {
Map<String, Set<String>> entries = new LinkedHashMap<>();
Set<String> bucket = new HashSet<>();
- bucket.add("ro.fortsoft.pf4j.plugin.TestExtension");
- bucket.add("ro.fortsoft.pf4j.plugin.FailTestExtension");
+ bucket.add("org.pf4j.plugin.TestExtension");
+ bucket.add("org.pf4j.plugin.FailTestExtension");
entries.put("plugin1", bucket);
bucket = new HashSet<>();
- bucket.add("ro.fortsoft.pf4j.plugin.TestExtension");
+ bucket.add("org.pf4j.plugin.TestExtension");
entries.put("plugin2", bucket);
return entries;
@@ -165,7 +165,7 @@ public class AbstractExtensionFinderTest {
Map<String, Set<String>> entries = new LinkedHashMap<>();
Set<String> bucket = new HashSet<>();
- bucket.add("ro.fortsoft.pf4j.plugin.TestExtension");
+ bucket.add("org.pf4j.plugin.TestExtension");
entries.put("plugin1", bucket);
return entries;
@@ -176,8 +176,8 @@ public class AbstractExtensionFinderTest {
Map<String, Set<String>> entries = new LinkedHashMap<>();
Set<String> bucket = new HashSet<>();
- bucket.add("ro.fortsoft.pf4j.plugin.TestExtension");
- bucket.add("ro.fortsoft.pf4j.plugin.FailTestExtension");
+ bucket.add("org.pf4j.plugin.TestExtension");
+ bucket.add("org.pf4j.plugin.FailTestExtension");
entries.put(null, bucket);
return entries;
diff --git a/pf4j/src/test/java/ro/fortsoft/pf4j/DefaultExtensionFactoryTest.java b/pf4j/src/test/java/org/pf4j/DefaultExtensionFactoryTest.java
index 28a4495..01822d0 100644
--- a/pf4j/src/test/java/ro/fortsoft/pf4j/DefaultExtensionFactoryTest.java
+++ b/pf4j/src/test/java/org/pf4j/DefaultExtensionFactoryTest.java
@@ -13,11 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package ro.fortsoft.pf4j;
+package org.pf4j;
import org.junit.Test;
-import ro.fortsoft.pf4j.plugin.FailTestExtension;
-import ro.fortsoft.pf4j.plugin.TestExtension;
+import org.pf4j.plugin.TestExtension;
+import org.pf4j.plugin.FailTestExtension;
import static org.junit.Assert.*;
diff --git a/pf4j/src/test/java/ro/fortsoft/pf4j/DefaultPluginFactoryTest.java b/pf4j/src/test/java/org/pf4j/DefaultPluginFactoryTest.java
index aef1fcc..5735328 100644
--- a/pf4j/src/test/java/ro/fortsoft/pf4j/DefaultPluginFactoryTest.java
+++ b/pf4j/src/test/java/org/pf4j/DefaultPluginFactoryTest.java
@@ -13,12 +13,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package ro.fortsoft.pf4j;
+package org.pf4j;
import org.junit.Test;
-import ro.fortsoft.pf4j.plugin.AnotherFailTestPlugin;
-import ro.fortsoft.pf4j.plugin.FailTestPlugin;
-import ro.fortsoft.pf4j.plugin.TestPlugin;
+import org.pf4j.plugin.FailTestPlugin;
+import org.pf4j.plugin.TestPlugin;
+import org.pf4j.plugin.AnotherFailTestPlugin;
import static org.hamcrest.CoreMatchers.instanceOf;
import static org.junit.Assert.assertNotNull;
@@ -76,7 +76,7 @@ public class DefaultPluginFactoryTest {
@Test
public void testCreateFailNotFound() {
PluginDescriptor pluginDescriptor = mock(PluginDescriptor.class);
- when(pluginDescriptor.getPluginClass()).thenReturn("ro.fortsoft.pf4j.plugin.NotFoundTestPlugin");
+ when(pluginDescriptor.getPluginClass()).thenReturn("org.pf4j.plugin.NotFoundTestPlugin");
PluginWrapper pluginWrapper = mock(PluginWrapper.class);
when(pluginWrapper.getDescriptor()).thenReturn(pluginDescriptor);
diff --git a/pf4j/src/test/java/ro/fortsoft/pf4j/DefaultPluginManagerTest.java b/pf4j/src/test/java/org/pf4j/DefaultPluginManagerTest.java
index 4c154d1..03f8496 100644
--- a/pf4j/src/test/java/ro/fortsoft/pf4j/DefaultPluginManagerTest.java
+++ b/pf4j/src/test/java/org/pf4j/DefaultPluginManagerTest.java
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package ro.fortsoft.pf4j;
+package org.pf4j;
import org.junit.Before;
import org.junit.Test;
diff --git a/pf4j/src/test/java/ro/fortsoft/pf4j/DefaultPluginRepositoryTest.java b/pf4j/src/test/java/org/pf4j/DefaultPluginRepositoryTest.java
index 95c153b..b66b3b5 100644
--- a/pf4j/src/test/java/ro/fortsoft/pf4j/DefaultPluginRepositoryTest.java
+++ b/pf4j/src/test/java/org/pf4j/DefaultPluginRepositoryTest.java
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package ro.fortsoft.pf4j;
+package org.pf4j;
import org.junit.Before;
import org.junit.Rule;
diff --git a/pf4j/src/test/java/ro/fortsoft/pf4j/DefaultPluginStatusProviderTest.java b/pf4j/src/test/java/org/pf4j/DefaultPluginStatusProviderTest.java
index db33d65..da2752e 100644
--- a/pf4j/src/test/java/ro/fortsoft/pf4j/DefaultPluginStatusProviderTest.java
+++ b/pf4j/src/test/java/org/pf4j/DefaultPluginStatusProviderTest.java
@@ -13,12 +13,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package ro.fortsoft.pf4j;
+package org.pf4j;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TemporaryFolder;
-import ro.fortsoft.pf4j.util.FileUtils;
+import org.pf4j.util.FileUtils;
import java.io.File;
import java.io.IOException;
diff --git a/pf4j/src/test/java/ro/fortsoft/pf4j/DefaultVersionManagerTest.java b/pf4j/src/test/java/org/pf4j/DefaultVersionManagerTest.java
index 802291d..aaa5fa9 100644
--- a/pf4j/src/test/java/ro/fortsoft/pf4j/DefaultVersionManagerTest.java
+++ b/pf4j/src/test/java/org/pf4j/DefaultVersionManagerTest.java
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package ro.fortsoft.pf4j;
+package org.pf4j;
import com.github.zafarkhaja.semver.ParseException;
import org.junit.Before;
diff --git a/pf4j/src/test/java/ro/fortsoft/pf4j/DependencyResolverTest.java b/pf4j/src/test/java/org/pf4j/DependencyResolverTest.java
index 14aba39..44d2c93 100644
--- a/pf4j/src/test/java/ro/fortsoft/pf4j/DependencyResolverTest.java
+++ b/pf4j/src/test/java/org/pf4j/DependencyResolverTest.java
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package ro.fortsoft.pf4j;
+package org.pf4j;
import org.junit.Before;
import org.junit.Test;
diff --git a/pf4j/src/test/java/ro/fortsoft/pf4j/ExtensionAnnotationProcessorTest.java b/pf4j/src/test/java/org/pf4j/ExtensionAnnotationProcessorTest.java
index 1c99396..c2e7c0e 100644
--- a/pf4j/src/test/java/ro/fortsoft/pf4j/ExtensionAnnotationProcessorTest.java
+++ b/pf4j/src/test/java/org/pf4j/ExtensionAnnotationProcessorTest.java
@@ -13,10 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package ro.fortsoft.pf4j;
+package org.pf4j;
import org.junit.Test;
-import ro.fortsoft.pf4j.processor.ExtensionAnnotationProcessor;
+import org.pf4j.processor.ExtensionAnnotationProcessor;
import java.util.Set;
diff --git a/pf4j/src/test/java/ro/fortsoft/pf4j/LegacyExtensionStorageTest.java b/pf4j/src/test/java/org/pf4j/LegacyExtensionStorageTest.java
index aeeb371..14daa6e 100644
--- a/pf4j/src/test/java/ro/fortsoft/pf4j/LegacyExtensionStorageTest.java
+++ b/pf4j/src/test/java/org/pf4j/LegacyExtensionStorageTest.java
@@ -13,10 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package ro.fortsoft.pf4j;
+package org.pf4j;
import org.junit.Test;
-import ro.fortsoft.pf4j.processor.LegacyExtensionStorage;
+import org.pf4j.processor.LegacyExtensionStorage;
import java.io.IOException;
import java.io.Reader;
@@ -38,9 +38,9 @@ public class LegacyExtensionStorageTest {
public void testRead() throws IOException {
Reader reader = new StringReader(
"# comment\n"
- + "ro.fortsoft.pf4j.demo.hello.HelloPlugin$HelloGreeting\n"
- + "ro.fortsoft.pf4j.demo.welcome.WelcomePlugin$WelcomeGreeting\n"
- + "ro.fortsoft.pf4j.demo.welcome.OtherGreeting\n");
+ + "org.pf4j.demo.hello.HelloPlugin$HelloGreeting\n"
+ + "org.pf4j.demo.welcome.WelcomePlugin$WelcomeGreeting\n"
+ + "org.pf4j.demo.welcome.OtherGreeting\n");
Set<String> entries = new HashSet<>();
LegacyExtensionStorage.read(reader, entries);
diff --git a/pf4j/src/test/java/ro/fortsoft/pf4j/LoadPluginsTest.java b/pf4j/src/test/java/org/pf4j/LoadPluginsTest.java
index 9ee9899..5c46d66 100644
--- a/pf4j/src/test/java/ro/fortsoft/pf4j/LoadPluginsTest.java
+++ b/pf4j/src/test/java/org/pf4j/LoadPluginsTest.java
@@ -13,11 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package ro.fortsoft.pf4j;
+package org.pf4j;
import org.junit.Before;
import org.junit.Test;
-import ro.fortsoft.pf4j.plugin.MockPluginManager;
+import org.pf4j.plugin.MockPluginManager;
import java.io.BufferedWriter;
import java.io.FileWriter;
@@ -161,7 +161,7 @@ public class LoadPluginsTest {
br.newLine();
br.write("plugin.version=" + version);
br.newLine();
- br.write("plugin.class=ro.fortsoft.pf4j.plugin.TestPlugin");
+ br.write("plugin.class=org.pf4j.plugin.TestPlugin");
br.close();
Files.move(propsFile, propsInZip);
}
diff --git a/pf4j/src/test/java/ro/fortsoft/pf4j/ManifestPluginDescriptorFinderTest.java b/pf4j/src/test/java/org/pf4j/ManifestPluginDescriptorFinderTest.java
index c858767..8c19733 100644
--- a/pf4j/src/test/java/ro/fortsoft/pf4j/ManifestPluginDescriptorFinderTest.java
+++ b/pf4j/src/test/java/org/pf4j/ManifestPluginDescriptorFinderTest.java
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package ro.fortsoft.pf4j;
+package org.pf4j;
import org.junit.Before;
import org.junit.Rule;
@@ -45,11 +45,11 @@ public class ManifestPluginDescriptorFinderTest {
Charset charset = Charset.forName("UTF-8");
Path pluginPath = testFolder.newFolder("test-plugin-1", "classes", "META-INF").toPath();
- Files.write(pluginPath.resolve("extensions.idx"), "ro.fortsoft.pf4j.demo.hello.HelloPlugin$HelloGreeting".getBytes());
+ Files.write(pluginPath.resolve("extensions.idx"), "org.pf4j.demo.hello.HelloPlugin$HelloGreeting".getBytes());
Files.write(pluginPath.resolve("MANIFEST.MF"), getPlugin1Manifest(), charset);
pluginPath = testFolder.newFolder("test-plugin-2", "classes", "META-INF").toPath();
- Files.write(pluginPath.resolve("extensions.idx"), "ro.fortsoft.pf4j.demo.hello.HelloPlugin$HelloGreeting".getBytes());
+ Files.write(pluginPath.resolve("extensions.idx"), "org.pf4j.demo.hello.HelloPlugin$HelloGreeting".getBytes());
Files.write(pluginPath.resolve("MANIFEST.MF"), getPlugin2Manifest(), charset);
// empty plugin
@@ -57,17 +57,17 @@ public class ManifestPluginDescriptorFinderTest {
// no plugin class
pluginPath = testFolder.newFolder("test-plugin-4", "classes", "META-INF").toPath();
- Files.write(pluginPath.resolve("extensions.idx"), "ro.fortsoft.pf4j.demo.hello.HelloPlugin$HelloGreeting".getBytes());
+ Files.write(pluginPath.resolve("extensions.idx"), "org.pf4j.demo.hello.HelloPlugin$HelloGreeting".getBytes());
Files.write(pluginPath.resolve("MANIFEST.MF"), getPlugin4Manifest(), charset);
// no plugin version
pluginPath = testFolder.newFolder("test-plugin-5", "classes", "META-INF").toPath();
- Files.write(pluginPath.resolve("extensions.idx"), "ro.fortsoft.pf4j.demo.hello.HelloPlugin$HelloGreeting".getBytes());
+ Files.write(pluginPath.resolve("extensions.idx"), "org.pf4j.demo.hello.HelloPlugin$HelloGreeting".getBytes());
Files.write(pluginPath.resolve("MANIFEST.MF"), getPlugin5Manifest(), charset);
// no plugin id
pluginPath = testFolder.newFolder("test-plugin-6", "classes", "META-INF").toPath();
- Files.write(pluginPath.resolve("extensions.idx"), "ro.fortsoft.pf4j.demo.hello.HelloPlugin$HelloGreeting".getBytes());
+ Files.write(pluginPath.resolve("extensions.idx"), "org.pf4j.demo.hello.HelloPlugin$HelloGreeting".getBytes());
Files.write(pluginPath.resolve("MANIFEST.MF"), getPlugin6Manifest(), charset);
versionManager = new DefaultVersionManager();
@@ -85,7 +85,7 @@ public class ManifestPluginDescriptorFinderTest {
assertEquals("test-plugin-1", plugin1.getPluginId());
assertEquals("Test Plugin 1", plugin1.getPluginDescription());
- assertEquals("ro.fortsoft.pf4j.plugin.TestPlugin", plugin1.getPluginClass());
+ assertEquals("org.pf4j.plugin.TestPlugin", plugin1.getPluginClass());
assertEquals("0.0.1", plugin1.getVersion());
assertEquals("Decebal Suiu", plugin1.getProvider());
assertEquals(2, plugin1.getDependencies().size());
@@ -97,7 +97,7 @@ public class ManifestPluginDescriptorFinderTest {
assertEquals("test-plugin-2", plugin2.getPluginId());
assertEquals("", plugin2.getPluginDescription());
- assertEquals("ro.fortsoft.pf4j.plugin.TestPlugin", plugin2.getPluginClass());
+ assertEquals("org.pf4j.plugin.TestPlugin", plugin2.getPluginClass());
assertEquals("0.0.1", plugin2.getVersion());
assertEquals("Decebal Suiu", plugin2.getProvider());
assertEquals(0, plugin2.getDependencies().size());
@@ -121,12 +121,12 @@ public class ManifestPluginDescriptorFinderTest {
+ "Archiver-Version: Plexus Archiver\n"
+ "Built-By: Mario Franco\n"
+ "Specification-Title: Test Plugin #1\n"
- + "Implementation-Vendor-Id: ro.fortsoft.pf4j.demo\n"
+ + "Implementation-Vendor-Id: org.pf4j.demo\n"
+ "Plugin-Version: 0.0.1\n"
+ "Plugin-Id: test-plugin-1\n"
+ "Plugin-Description: Test Plugin 1\n"
+ "Plugin-Provider: Decebal Suiu\n"
- + "Plugin-Class: ro.fortsoft.pf4j.plugin.TestPlugin\n"
+ + "Plugin-Class: org.pf4j.plugin.TestPlugin\n"
+ "Plugin-Dependencies: test-plugin-2,test-plugin-3@~1.0\n"
+ "Plugin-Requires: *\n"
+ "Plugin-License: Apache-2.0\n"
@@ -149,11 +149,11 @@ public class ManifestPluginDescriptorFinderTest {
+ "Archiver-Version: Plexus Archiver\n"
+ "Built-By: Mario Franco\n"
+ "Specification-Title: Test Plugin #2\n"
- + "Implementation-Vendor-Id: ro.fortsoft.pf4j.demo\n"
+ + "Implementation-Vendor-Id: org.pf4j.demo\n"
+ "Plugin-Version: 0.0.1\n"
+ "Plugin-Id: test-plugin-2\n"
+ "Plugin-Provider: Decebal Suiu\n"
- + "Plugin-Class: ro.fortsoft.pf4j.plugin.TestPlugin\n"
+ + "Plugin-Class: org.pf4j.plugin.TestPlugin\n"
+ "Created-By: Apache Maven 3.0.5\n"
+ "Build-Jdk: 1.8.0_45\n"
+ "Specification-Version: 0.10.0-SNAPSHOT\n"
@@ -172,7 +172,7 @@ public class ManifestPluginDescriptorFinderTest {
+ "Archiver-Version: Plexus Archiver\n"
+ "Built-By: Mario Franco\n"
+ "Specification-Title: Test Plugin #4\n"
- + "Implementation-Vendor-Id: ro.fortsoft.pf4j.demo\n"
+ + "Implementation-Vendor-Id: org.pf4j.demo\n"
+ "Plugin-Version: 0.0.1\n"
+ "Plugin-Id: test-plugin-2\n"
+ "Plugin-Provider: Decebal Suiu\n"
@@ -194,10 +194,10 @@ public class ManifestPluginDescriptorFinderTest {
+ "Archiver-Version: Plexus Archiver\n"
+ "Built-By: Mario Franco\n"
+ "Specification-Title: Test Plugin #5\n"
- + "Implementation-Vendor-Id: ro.fortsoft.pf4j.demo\n"
+ + "Implementation-Vendor-Id: org.pf4j.demo\n"
+ "Plugin-Id: test-plugin-2\n"
+ "Plugin-Provider: Decebal Suiu\n"
- + "Plugin-Class: ro.fortsoft.pf4j.plugin.TestPlugin\n"
+ + "Plugin-Class: org.pf4j.plugin.TestPlugin\n"
+ "Created-By: Apache Maven 3.0.5\n"
+ "Build-Jdk: 1.8.0_45\n"
+ "Specification-Version: 0.10.0-SNAPSHOT\n"
@@ -216,9 +216,9 @@ public class ManifestPluginDescriptorFinderTest {
+ "Archiver-Version: Plexus Archiver\n"
+ "Built-By: Mario Franco\n"
+ "Specification-Title: Test Plugin #6\n"
- + "Implementation-Vendor-Id: ro.fortsoft.pf4j.demo\n"
+ + "Implementation-Vendor-Id: org.pf4j.demo\n"
+ "Plugin-Provider: Decebal Suiu\n"
- + "Plugin-Class: ro.fortsoft.pf4j.plugin.TestPlugin\n"
+ + "Plugin-Class: org.pf4j.plugin.TestPlugin\n"
+ "Created-By: Apache Maven 3.0.5\n"
+ "Build-Jdk: 1.8.0_45\n"
+ "Specification-Version: 0.10.0-SNAPSHOT\n"
diff --git a/pf4j/src/test/java/ro/fortsoft/pf4j/PluginDependencyTest.java b/pf4j/src/test/java/org/pf4j/PluginDependencyTest.java
index 9304e57..f65ee51 100644
--- a/pf4j/src/test/java/ro/fortsoft/pf4j/PluginDependencyTest.java
+++ b/pf4j/src/test/java/org/pf4j/PluginDependencyTest.java
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package ro.fortsoft.pf4j;
+package org.pf4j;
import org.junit.Test;
diff --git a/pf4j/src/test/java/ro/fortsoft/pf4j/PropertiesPluginDescriptorFinderTest.java b/pf4j/src/test/java/org/pf4j/PropertiesPluginDescriptorFinderTest.java
index aa6d7c5..e308f59 100644
--- a/pf4j/src/test/java/ro/fortsoft/pf4j/PropertiesPluginDescriptorFinderTest.java
+++ b/pf4j/src/test/java/org/pf4j/PropertiesPluginDescriptorFinderTest.java
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package ro.fortsoft.pf4j;
+package org.pf4j;
import org.junit.Before;
import org.junit.Rule;
@@ -73,7 +73,7 @@ public class PropertiesPluginDescriptorFinderTest {
assertEquals("test-plugin-1", plugin1.getPluginId());
assertEquals("Test Plugin 1", plugin1.getPluginDescription());
- assertEquals("ro.fortsoft.pf4j.plugin.TestPlugin", plugin1.getPluginClass());
+ assertEquals("org.pf4j.plugin.TestPlugin", plugin1.getPluginClass());
assertEquals("0.0.1", plugin1.getVersion());
assertEquals("Decebal Suiu", plugin1.getProvider());
assertEquals(2, plugin1.getDependencies().size());
@@ -87,7 +87,7 @@ public class PropertiesPluginDescriptorFinderTest {
assertEquals("test-plugin-2", plugin2.getPluginId());
assertEquals("", plugin2.getPluginDescription());
- assertEquals("ro.fortsoft.pf4j.plugin.TestPlugin", plugin2.getPluginClass());
+ assertEquals("org.pf4j.plugin.TestPlugin", plugin2.getPluginClass());
assertEquals("0.0.1", plugin2.getVersion());
assertEquals("Decebal Suiu", plugin2.getProvider());
assertEquals(0, plugin2.getDependencies().size());
@@ -107,7 +107,7 @@ public class PropertiesPluginDescriptorFinderTest {
+ "plugin.version=0.0.1\n"
+ "plugin.description=Test Plugin 1\n"
+ "plugin.provider=Decebal Suiu\n"
- + "plugin.class=ro.fortsoft.pf4j.plugin.TestPlugin\n"
+ + "plugin.class=org.pf4j.plugin.TestPlugin\n"
+ "plugin.dependencies=test-plugin-2,test-plugin-3@~1.0\n"
+ "plugin.requires=>=1\n"
+ "plugin.license=Apache-2.0\n"
@@ -123,7 +123,7 @@ public class PropertiesPluginDescriptorFinderTest {
"plugin.id=test-plugin-2\n"
+ "plugin.version=0.0.1\n"
+ "plugin.provider=Decebal Suiu\n"
- + "plugin.class=ro.fortsoft.pf4j.plugin.TestPlugin\n"
+ + "plugin.class=org.pf4j.plugin.TestPlugin\n"
+ "plugin.dependencies=\n"
+ "\n"
+ ""
@@ -150,7 +150,7 @@ public class PropertiesPluginDescriptorFinderTest {
String[] lines = new String[] {
"plugin.id=test-plugin-2\n"
+ "plugin.provider=Decebal Suiu\n"
- + "plugin.class=ro.fortsoft.pf4j.plugin.TestPlugin\n"
+ + "plugin.class=org.pf4j.plugin.TestPlugin\n"
+ "plugin.dependencies=\n"
+ "plugin.requires=*\n"
+ "\n"
@@ -164,7 +164,7 @@ public class PropertiesPluginDescriptorFinderTest {
String[] lines = new String[] {
"plugin.version=0.0.1\n"
+ "plugin.provider=Decebal Suiu\n"
- + "plugin.class=ro.fortsoft.pf4j.plugin.TestPlugin\n"
+ + "plugin.class=org.pf4j.plugin.TestPlugin\n"
+ "plugin.dependencies=\n"
+ "plugin.requires=*\n"
+ "\n"
diff --git a/pf4j/src/test/java/ro/fortsoft/pf4j/plugin/AnotherFailTestPlugin.java b/pf4j/src/test/java/org/pf4j/plugin/AnotherFailTestPlugin.java
index 5cfe611..aa124ad 100644
--- a/pf4j/src/test/java/ro/fortsoft/pf4j/plugin/AnotherFailTestPlugin.java
+++ b/pf4j/src/test/java/org/pf4j/plugin/AnotherFailTestPlugin.java
@@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package ro.fortsoft.pf4j.plugin;
+package org.pf4j.plugin;
-import ro.fortsoft.pf4j.Plugin;
+import org.pf4j.Plugin;
/**
*
diff --git a/pf4j/src/test/java/ro/fortsoft/pf4j/plugin/FailTestExtension.java b/pf4j/src/test/java/org/pf4j/plugin/FailTestExtension.java
index 3832b7f..2fa6062 100644
--- a/pf4j/src/test/java/ro/fortsoft/pf4j/plugin/FailTestExtension.java
+++ b/pf4j/src/test/java/org/pf4j/plugin/FailTestExtension.java
@@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package ro.fortsoft.pf4j.plugin;
+package org.pf4j.plugin;
-import ro.fortsoft.pf4j.Extension;
+import org.pf4j.Extension;
/**
* @author Mario Franco
diff --git a/pf4j/src/test/java/ro/fortsoft/pf4j/plugin/FailTestPlugin.java b/pf4j/src/test/java/org/pf4j/plugin/FailTestPlugin.java
index 0f4ba65..c53ae38 100644
--- a/pf4j/src/test/java/ro/fortsoft/pf4j/plugin/FailTestPlugin.java
+++ b/pf4j/src/test/java/org/pf4j/plugin/FailTestPlugin.java
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package ro.fortsoft.pf4j.plugin;
+package org.pf4j.plugin;
/**
*
diff --git a/pf4j/src/test/java/ro/fortsoft/pf4j/plugin/MockPluginManager.java b/pf4j/src/test/java/org/pf4j/plugin/MockPluginManager.java
index 139a0e8..eb1956d 100644
--- a/pf4j/src/test/java/ro/fortsoft/pf4j/plugin/MockPluginManager.java
+++ b/pf4j/src/test/java/org/pf4j/plugin/MockPluginManager.java
@@ -13,12 +13,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package ro.fortsoft.pf4j.plugin;
+package org.pf4j.plugin;
-import ro.fortsoft.pf4j.DefaultPluginClasspath;
-import ro.fortsoft.pf4j.DefaultPluginDescriptorFinder;
-import ro.fortsoft.pf4j.DefaultPluginManager;
-import ro.fortsoft.pf4j.PluginDescriptorFinder;
+import org.pf4j.DefaultPluginClasspath;
+import org.pf4j.DefaultPluginDescriptorFinder;
+import org.pf4j.DefaultPluginManager;
+import org.pf4j.PluginDescriptorFinder;
import java.nio.file.Path;
diff --git a/pf4j/src/test/java/ro/fortsoft/pf4j/plugin/TestExtension.java b/pf4j/src/test/java/org/pf4j/plugin/TestExtension.java
index 181e90d..9134358 100644
--- a/pf4j/src/test/java/ro/fortsoft/pf4j/plugin/TestExtension.java
+++ b/pf4j/src/test/java/org/pf4j/plugin/TestExtension.java
@@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package ro.fortsoft.pf4j.plugin;
+package org.pf4j.plugin;
-import ro.fortsoft.pf4j.Extension;
+import org.pf4j.Extension;
/**
* @author Mario Franco
diff --git a/pf4j/src/test/java/ro/fortsoft/pf4j/plugin/TestExtensionPoint.java b/pf4j/src/test/java/org/pf4j/plugin/TestExtensionPoint.java
index 3c1ee1e..f8a1a64 100644
--- a/pf4j/src/test/java/ro/fortsoft/pf4j/plugin/TestExtensionPoint.java
+++ b/pf4j/src/test/java/org/pf4j/plugin/TestExtensionPoint.java
@@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package ro.fortsoft.pf4j.plugin;
+package org.pf4j.plugin;
-import ro.fortsoft.pf4j.ExtensionPoint;
+import org.pf4j.ExtensionPoint;
/**
* @author Mario Franco
diff --git a/pf4j/src/test/java/ro/fortsoft/pf4j/plugin/TestPlugin.java b/pf4j/src/test/java/org/pf4j/plugin/TestPlugin.java
index 3557a16..f0f8c87 100644
--- a/pf4j/src/test/java/ro/fortsoft/pf4j/plugin/TestPlugin.java
+++ b/pf4j/src/test/java/org/pf4j/plugin/TestPlugin.java
@@ -13,10 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package ro.fortsoft.pf4j.plugin;
+package org.pf4j.plugin;
-import ro.fortsoft.pf4j.Plugin;
-import ro.fortsoft.pf4j.PluginWrapper;
+import org.pf4j.Plugin;
+import org.pf4j.PluginWrapper;
/**
*
diff --git a/pf4j/src/test/java/ro/fortsoft/pf4j/util/FileUtilsTest.java b/pf4j/src/test/java/org/pf4j/util/FileUtilsTest.java
index 6b98549..6b52fdf 100644
--- a/pf4j/src/test/java/ro/fortsoft/pf4j/util/FileUtilsTest.java
+++ b/pf4j/src/test/java/org/pf4j/util/FileUtilsTest.java
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package ro.fortsoft.pf4j.util;
+package org.pf4j.util;
import org.junit.Before;
import org.junit.Test;
diff --git a/pf4j/src/test/resources/log4j.properties b/pf4j/src/test/resources/log4j.properties
index 0454ba2..7edd29c 100644
--- a/pf4j/src/test/resources/log4j.properties
+++ b/pf4j/src/test/resources/log4j.properties
@@ -3,13 +3,13 @@ log4j.rootLogger=DEBUG, Console
#
# PF4J log
#
-log4j.logger.ro.fortsoft.pf4j=DEBUG, Console
+log4j.logger.org.pf4j=DEBUG, Console
# !!! Put the bellow classes on level TRACE when you are in trouble
-log4j.logger.ro.fortsoft.pf4j.PluginClassLoader=WARN, Console
-log4j.logger.ro.fortsoft.pf4j.AbstractExtensionFinder=DEBUG, Console
-log4j.additivity.ro.fortsoft.pf4j=false
-log4j.additivity.ro.fortsoft.pf4j.PluginClassLoader=false
-log4j.additivity.ro.fortsoft.pf4j.AbstractExtensionFinder=false
+log4j.logger.org.pf4j.PluginClassLoader=WARN, Console
+log4j.logger.org.pf4j.AbstractExtensionFinder=DEBUG, Console
+log4j.additivity.org.pf4j=false
+log4j.additivity.org.pf4j.PluginClassLoader=false
+log4j.additivity.org.pf4j.AbstractExtensionFinder=false
#
# Appenders