From: Mário Franco Date: Tue, 21 Jul 2015 13:08:51 +0000 (+0100) Subject: Clean up the tests X-Git-Tag: release-0.10.0~3^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F59%2Fhead;p=pf4j.git Clean up the tests --- diff --git a/pf4j/src/test/java/ro/fortsoft/pf4j/DefaultExtensionFactoryTest.java b/pf4j/src/test/java/ro/fortsoft/pf4j/DefaultExtensionFactoryTest.java index 9ea8559..506a393 100644 --- a/pf4j/src/test/java/ro/fortsoft/pf4j/DefaultExtensionFactoryTest.java +++ b/pf4j/src/test/java/ro/fortsoft/pf4j/DefaultExtensionFactoryTest.java @@ -28,17 +28,6 @@ import static org.junit.Assert.*; */ public class DefaultExtensionFactoryTest { - public DefaultExtensionFactoryTest() { - } - - @Before - public void setUp() { - } - - @After - public void tearDown() { - } - /** * Test of create method, of class DefaultExtensionFactory. */ diff --git a/pf4j/src/test/java/ro/fortsoft/pf4j/DefaultPluginFactoryTest.java b/pf4j/src/test/java/ro/fortsoft/pf4j/DefaultPluginFactoryTest.java index 8ab6d50..203aa02 100644 --- a/pf4j/src/test/java/ro/fortsoft/pf4j/DefaultPluginFactoryTest.java +++ b/pf4j/src/test/java/ro/fortsoft/pf4j/DefaultPluginFactoryTest.java @@ -35,17 +35,6 @@ import static org.mockito.Mockito.when; */ public class DefaultPluginFactoryTest { - public DefaultPluginFactoryTest() { - } - - @Before - public void setUp() { - } - - @After - public void tearDown() { - } - /** * Test of create method, of class DefaultPluginFactory. */ diff --git a/pf4j/src/test/java/ro/fortsoft/pf4j/DefaultPluginRepositoryTest.java b/pf4j/src/test/java/ro/fortsoft/pf4j/DefaultPluginRepositoryTest.java index 3ae58af..b2ccbd0 100644 --- a/pf4j/src/test/java/ro/fortsoft/pf4j/DefaultPluginRepositoryTest.java +++ b/pf4j/src/test/java/ro/fortsoft/pf4j/DefaultPluginRepositoryTest.java @@ -39,9 +39,6 @@ public class DefaultPluginRepositoryTest { @Rule public TemporaryFolder testFolder = new TemporaryFolder(); - public DefaultPluginRepositoryTest() { - } - @Before public void setUp() throws IOException { testFolder.newFile("plugin-1.zip"); @@ -49,10 +46,6 @@ public class DefaultPluginRepositoryTest { testFolder.newFile("plugin-3.zi_"); } - @After - public void tearDown() { - } - /** * Test of getPluginArchives method, of class DefaultPluginRepository. */ diff --git a/pf4j/src/test/java/ro/fortsoft/pf4j/DefaultPluginStatusProviderTest.java b/pf4j/src/test/java/ro/fortsoft/pf4j/DefaultPluginStatusProviderTest.java index 85991c4..72ef17b 100644 --- a/pf4j/src/test/java/ro/fortsoft/pf4j/DefaultPluginStatusProviderTest.java +++ b/pf4j/src/test/java/ro/fortsoft/pf4j/DefaultPluginStatusProviderTest.java @@ -27,7 +27,6 @@ import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; -import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; @@ -41,9 +40,6 @@ public class DefaultPluginStatusProviderTest { @Rule public TemporaryFolder testFolder = new TemporaryFolder(); - public DefaultPluginStatusProviderTest() { - } - @Before public void setUp() throws IOException { File file = testFolder.newFile("disabled.txt"); @@ -62,10 +58,6 @@ public class DefaultPluginStatusProviderTest { } } - @After - public void tearDown() { - } - /** * Test of isPluginDisabled method, of class DefaultPluginStatusProvider. */ diff --git a/pf4j/src/test/java/ro/fortsoft/pf4j/plugin/TestExtension.java b/pf4j/src/test/java/ro/fortsoft/pf4j/plugin/TestExtension.java index f0e9667..3d74ffb 100644 --- a/pf4j/src/test/java/ro/fortsoft/pf4j/plugin/TestExtension.java +++ b/pf4j/src/test/java/ro/fortsoft/pf4j/plugin/TestExtension.java @@ -15,10 +15,12 @@ */ package ro.fortsoft.pf4j.plugin; +import ro.fortsoft.pf4j.ExtensionPoint; + /** * * @author Mario Franco */ -public class TestExtension { +public class TestExtension implements ExtensionPoint { }