Rename the TestJailStuff to TestJailDefaultConfig
This commit is contained in:
parent
47fd0d7632
commit
59c583e8b3
@ -1,7 +1,9 @@
|
|||||||
package test.java.com.graywolf336.jail;
|
package test.java.com.graywolf336.jail;
|
||||||
|
|
||||||
import static org.junit.Assert.*;
|
import static org.junit.Assert.assertEquals;
|
||||||
import static org.hamcrest.CoreMatchers.is;
|
import static org.junit.Assert.assertTrue;
|
||||||
|
import static org.junit.Assert.assertFalse;
|
||||||
|
import static org.junit.Assert.assertNotNull;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ -20,7 +22,7 @@ import com.graywolf336.jail.enums.Settings;
|
|||||||
|
|
||||||
@RunWith(PowerMockRunner.class)
|
@RunWith(PowerMockRunner.class)
|
||||||
@PrepareForTest({ JailMain.class, PluginDescriptionFile.class })
|
@PrepareForTest({ JailMain.class, PluginDescriptionFile.class })
|
||||||
public class TestJailStuff {
|
public class TestJailDefaultConfig {
|
||||||
private static TestInstanceCreator creator;
|
private static TestInstanceCreator creator;
|
||||||
private static JailMain main;
|
private static JailMain main;
|
||||||
|
|
||||||
@ -38,15 +40,6 @@ public class TestJailStuff {
|
|||||||
creator.tearDown();
|
creator.tearDown();
|
||||||
main = null;
|
main = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
public void testForJails() {
|
|
||||||
assertNotNull("The HandCuffManager is null.", main.getHandCuffManager());
|
|
||||||
assertNotNull("The JailIO is null.", main.getJailIO());
|
|
||||||
assertNotNull("The JailManager is null.", main.getJailManager());
|
|
||||||
assertNotNull("The HashSet for jails return is null.", main.getJailManager().getJails());
|
|
||||||
assertThat(main, is(main.getJailManager().getPlugin()));
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testSystemDefaultConfig() {
|
public void testSystemDefaultConfig() {
|
Loading…
Reference in New Issue
Block a user