mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-11-09 20:31:38 +01:00
World Pie Inspect page
Removed now redundant WrongUUID tests
This commit is contained in:
parent
96a1d227e8
commit
e888864ab0
@ -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));
|
||||
}
|
||||
}
|
||||
|
@ -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());
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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());
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
@ -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));
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user