Browse Source

Clean up the tests

pull/59/head
Mário Franco 10 years ago
parent
commit
8203fc7f42
  1. 11
      pf4j/src/test/java/ro/fortsoft/pf4j/DefaultExtensionFactoryTest.java
  2. 11
      pf4j/src/test/java/ro/fortsoft/pf4j/DefaultPluginFactoryTest.java
  3. 7
      pf4j/src/test/java/ro/fortsoft/pf4j/DefaultPluginRepositoryTest.java
  4. 8
      pf4j/src/test/java/ro/fortsoft/pf4j/DefaultPluginStatusProviderTest.java
  5. 4
      pf4j/src/test/java/ro/fortsoft/pf4j/plugin/TestExtension.java

11
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.
*/

11
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.
*/

7
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.
*/

8
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.
*/

4
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 {
}

Loading…
Cancel
Save