From d3cbcdd0dbf41a9f3017a2230bf699c1525573b2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sun, 12 Jul 2015 12:52:59 +0200 Subject: [PATCH] Remove unnecessary toString() invocations --- .../pterodactylus/fcp/quelaton/DefaultFcpClientTest.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/test/java/net/pterodactylus/fcp/quelaton/DefaultFcpClientTest.java b/src/test/java/net/pterodactylus/fcp/quelaton/DefaultFcpClientTest.java index 0151f2d..450345b 100644 --- a/src/test/java/net/pterodactylus/fcp/quelaton/DefaultFcpClientTest.java +++ b/src/test/java/net/pterodactylus/fcp/quelaton/DefaultFcpClientTest.java @@ -893,7 +893,7 @@ public class DefaultFcpClientTest { "volatile.freeJavaMemory=205706528", "EndMessage" ); - assertThat(nodeData.get().getVolatile("freeJavaMemory").toString(), is("205706528")); + assertThat(nodeData.get().getVolatile("freeJavaMemory"), is("205706528")); } @Test @@ -921,7 +921,7 @@ public class DefaultFcpClientTest { "lastGoodVersion=Fred,0.7,1.0,1466", "EndMessage" ); - assertThat(peer.get().get().getIdentity().toString(), is("id1")); + assertThat(peer.get().get().getIdentity(), is("id1")); } @Test @@ -949,7 +949,7 @@ public class DefaultFcpClientTest { "lastGoodVersion=Fred,0.7,1.0,1466", "EndMessage" ); - assertThat(peer.get().get().getIdentity().toString(), is("id1")); + assertThat(peer.get().get().getIdentity(), is("id1")); } @Test @@ -977,7 +977,7 @@ public class DefaultFcpClientTest { "lastGoodVersion=Fred,0.7,1.0,1466", "EndMessage" ); - assertThat(peer.get().get().getIdentity().toString(), is("id1")); + assertThat(peer.get().get().getIdentity(), is("id1")); } @Test @@ -1026,7 +1026,7 @@ public class DefaultFcpClientTest { "lastGoodVersion=Fred,0.7,1.0,1466", "EndMessage" ); - assertThat(peer.get().get().getIdentity().toString(), is("id1")); + assertThat(peer.get().get().getIdentity(), is("id1")); } @Test @@ -1053,7 +1053,7 @@ public class DefaultFcpClientTest { "lastGoodVersion=Fred,0.7,1.0,1466", "EndMessage" ); - assertThat(peer.get().get().getIdentity().toString(), is("id1")); + assertThat(peer.get().get().getIdentity(), is("id1")); } @Test @@ -1099,7 +1099,7 @@ public class DefaultFcpClientTest { "lastGoodVersion=Fred,0.7,1.0,1466", "EndMessage" ); - assertThat(peer.get().get().getIdentity().toString(), is("id1")); + assertThat(peer.get().get().getIdentity(), is("id1")); } } -- 2.7.4