From: David ‘Bombe’ Roden Date: Sun, 12 Jul 2015 10:52:59 +0000 (+0200) Subject: Remove unnecessary toString() invocations X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=d3cbcdd0dbf41a9f3017a2230bf699c1525573b2;p=jFCPlib.git Remove unnecessary toString() invocations --- 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")); } }