From: David ‘Bombe’ Roden Date: Fri, 13 Apr 2018 16:01:04 +0000 (+0200) Subject: Don’t expect a casted HLSC X-Git-Tag: v79^2~122 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=6a684bd4d49cc0cb09490170c8880491fd909d78;p=Sone.git Don’t expect a casted HLSC --- diff --git a/src/test/java/net/pterodactylus/sone/core/FreenetInterfaceTest.java b/src/test/java/net/pterodactylus/sone/core/FreenetInterfaceTest.java index e5f2bca..4a77dd4 100644 --- a/src/test/java/net/pterodactylus/sone/core/FreenetInterfaceTest.java +++ b/src/test/java/net/pterodactylus/sone/core/FreenetInterfaceTest.java @@ -237,7 +237,7 @@ public class FreenetInterfaceTest { FreenetURI freenetUri = createRandom(randomSource, "test-0").getURI().uskForSSK(); Callback callback = mock(Callback.class); freenetInterface.registerUsk(freenetUri, callback); - verify(uskManager).subscribe(any(USK.class), any(USKCallback.class), anyBoolean(), eq((RequestClient) highLevelSimpleClient)); + verify(uskManager).subscribe(any(USK.class), any(USKCallback.class), anyBoolean(), any(RequestClient.class)); } @Test @@ -245,7 +245,7 @@ public class FreenetInterfaceTest { FreenetURI freenetUri = new FreenetURI("KSK@GPLv3.txt"); Callback callback = mock(Callback.class); freenetInterface.registerUsk(freenetUri, callback); - verify(uskManager, never()).subscribe(any(USK.class), any(USKCallback.class), anyBoolean(), eq((RequestClient) highLevelSimpleClient)); + verify(uskManager, never()).subscribe(any(USK.class), any(USKCallback.class), anyBoolean(), any(RequestClient.class)); } @Test @@ -269,9 +269,7 @@ public class FreenetInterfaceTest { throws MalformedURLException { FreenetURI freenetUri = createRandom(randomSource, "test-0").getURI(); freenetInterface.registerActiveUsk(freenetUri, null); - verify(uskManager, never()).subscribe(any(USK.class), - any(USKCallback.class), anyBoolean(), - eq((RequestClient) highLevelSimpleClient)); + verify(uskManager, never()).subscribe(any(USK.class), any(USKCallback.class), anyBoolean(), any(RequestClient.class)); } @Test @@ -279,9 +277,7 @@ public class FreenetInterfaceTest { throws MalformedURLException { FreenetURI freenetUri = createRandom(randomSource, "test-0").getURI(); freenetInterface.registerPassiveUsk(freenetUri, null); - verify(uskManager, never()).subscribe(any(USK.class), - any(USKCallback.class), anyBoolean(), - eq((RequestClient) highLevelSimpleClient)); + verify(uskManager, never()).subscribe(any(USK.class), any(USKCallback.class), anyBoolean(), any(RequestClient.class)); } @Test