Rename the TestJailStuff to TestJailDefaultConfig

This commit is contained in:
graywolf336 2014-07-23 14:48:39 -05:00
parent 47fd0d7632
commit 59c583e8b3

View File

@ -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;
@ -39,15 +41,6 @@ public class TestJailStuff {
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() {
assertEquals("The config version is not 3.", 3, main.getConfig().getInt(Settings.CONFIGVERSION.getPath())); assertEquals("The config version is not 3.", 3, main.getConfig().getInt(Settings.CONFIGVERSION.getPath()));