diff --git a/Plan/src/test/java/main/java/com/djrapitops/plan/data/handling/info/ChatInfoTest.java b/Plan/src/test/java/main/java/com/djrapitops/plan/data/handling/info/ChatInfoTest.java index 6e578e8ad..8116986e9 100644 --- a/Plan/src/test/java/main/java/com/djrapitops/plan/data/handling/info/ChatInfoTest.java +++ b/Plan/src/test/java/main/java/com/djrapitops/plan/data/handling/info/ChatInfoTest.java @@ -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)); - } } diff --git a/Plan/src/test/java/main/java/com/djrapitops/plan/data/handling/info/DeathInfoTest.java b/Plan/src/test/java/main/java/com/djrapitops/plan/data/handling/info/DeathInfoTest.java index a30933d44..3f2556173 100644 --- a/Plan/src/test/java/main/java/com/djrapitops/plan/data/handling/info/DeathInfoTest.java +++ b/Plan/src/test/java/main/java/com/djrapitops/plan/data/handling/info/DeathInfoTest.java @@ -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()); - } - } diff --git a/Plan/src/test/java/main/java/com/djrapitops/plan/data/handling/info/KillInfoTest.java b/Plan/src/test/java/main/java/com/djrapitops/plan/data/handling/info/KillInfoTest.java index 52366572c..749e437ef 100644 --- a/Plan/src/test/java/main/java/com/djrapitops/plan/data/handling/info/KillInfoTest.java +++ b/Plan/src/test/java/main/java/com/djrapitops/plan/data/handling/info/KillInfoTest.java @@ -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()); - } - } diff --git a/Plan/src/test/java/main/java/com/djrapitops/plan/data/handling/info/LoginInfoTest.java b/Plan/src/test/java/main/java/com/djrapitops/plan/data/handling/info/LoginInfoTest.java index 3daccf064..6003b0e20 100644 --- a/Plan/src/test/java/main/java/com/djrapitops/plan/data/handling/info/LoginInfoTest.java +++ b/Plan/src/test/java/main/java/com/djrapitops/plan/data/handling/info/LoginInfoTest.java @@ -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)); - } } diff --git a/Plan/src/test/java/main/java/com/djrapitops/plan/data/handling/info/LogoutInfoTest.java b/Plan/src/test/java/main/java/com/djrapitops/plan/data/handling/info/LogoutInfoTest.java index bd83488cf..be53a9dc7 100644 --- a/Plan/src/test/java/main/java/com/djrapitops/plan/data/handling/info/LogoutInfoTest.java +++ b/Plan/src/test/java/main/java/com/djrapitops/plan/data/handling/info/LogoutInfoTest.java @@ -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)); - } - } diff --git a/Plan/src/test/java/main/java/com/djrapitops/plan/data/handling/info/ReloadInfoTest.java b/Plan/src/test/java/main/java/com/djrapitops/plan/data/handling/info/ReloadInfoTest.java index 3dae0caf0..b0a10a28f 100644 --- a/Plan/src/test/java/main/java/com/djrapitops/plan/data/handling/info/ReloadInfoTest.java +++ b/Plan/src/test/java/main/java/com/djrapitops/plan/data/handling/info/ReloadInfoTest.java @@ -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)); - } }