World Pie Inspect page

Removed now redundant WrongUUID tests
This commit is contained in:
Rsl1122 2017-07-31 21:30:58 +03:00
parent 96a1d227e8
commit e888864ab0
6 changed files with 0 additions and 78 deletions

View File

@ -36,15 +36,4 @@ public class ChatInfoTest {
assertTrue("Didn't succeed", i.process(data));
assertTrue("Didn't add nickname", data.getNicknames().contains(expected));
}
/**
*
*/
@Test
public void testProcessWrongUUID() {
UserData data = MockUtils.mockUser();
String expected = "TestNicknameChatInfo";
ChatInfo i = new ChatInfo(null, expected);
assertTrue("Succeeded.", !i.process(data));
}
}

View File

@ -42,16 +42,4 @@ public class DeathInfoTest {
assertTrue(i.process(data));
assertEquals(1, data.getDeaths());
}
/**
*
*/
@Test
public void testProcessWrongUUID() {
UserData data = MockUtils.mockUser();
DeathInfo i = new DeathInfo(null);
assertTrue(!i.process(data));
assertEquals(0, data.getDeaths());
}
}

View File

@ -105,17 +105,4 @@ public class KillInfoTest {
assertTrue("Added a kill", data.getPlayerKills().isEmpty());
assertEquals(1, data.getMobKills());
}
/**
* @throws SQLException
*/
@Test
public void testProcessMobKillWrongUUID() throws SQLException {
UserData data = MockUtils.mockUser();
KillInfo i = new KillInfo(null, 10L, null, "TestWeapon");
assertTrue(!i.process(data));
assertTrue("Added a kill", data.getPlayerKills().isEmpty());
assertEquals(0, data.getMobKills());
}
}

View File

@ -65,18 +65,4 @@ public class LoginInfoTest {
assertEquals("CREATIVE", data.getGmTimes().getState());
assertEquals("World", data.getWorldTimes().getState());
}
/**
* @throws UnknownHostException
*/
@Test
public void testProcessWrongUUID() throws UnknownHostException {
UserData data = MockUtils.mockUser();
data.setLastPlayed(0L);
InetAddress ip = InetAddress.getByName("137.19.188.146");
long time = 10L;
String nick = "TestProcessLoginInfo";
LoginInfo i = new LoginInfo(null, time, ip, true, nick, "CREATIVE", 1, "World");
assertTrue(!i.process(data));
}
}

View File

@ -52,19 +52,4 @@ public class LogoutInfoTest {
assertEquals("World", data.getWorldTimes().getState());
assertEquals(1, data.getSessions().size());
}
/**
*
*/
@Test
public void testProcessWrongUUID() {
UserData data = MockUtils.mockUser();
data.setLastPlayed(10L);
data.updateBanned(false);
long time = 20L;
Exception ex = null;
LogoutInfo i = new LogoutInfo(null, time, true, "CREATIVE", new SessionData(0, 1), "World");
assertTrue(!i.process(data));
}
}

View File

@ -66,17 +66,4 @@ public class ReloadInfoTest {
assertEquals("CREATIVE", data.getGmTimes().getState());
assertEquals("World", data.getWorldTimes().getState());
}
/**
* @throws UnknownHostException
*/
@Test
public void testProcessWrongUUID() throws UnknownHostException {
UserData data = MockUtils.mockUser();
InetAddress ip = InetAddress.getByName("137.19.188.146");
long time = 10L;
String nick = "TestProcessLoginInfo";
ReloadInfo i = new ReloadInfo(null, time, ip, true, nick, "CREATIVE", "World");
assertTrue(!i.process(data));
}
}