Complete unit test for options page
[Sone.git] / src / test / java / net / pterodactylus / sone / web / WebPageTest.java
index b38121f..71cc9f2 100644 (file)
@@ -123,7 +123,7 @@ public abstract class WebPageTest {
                when(httpRequest.isPartSet(anyString())).thenAnswer(new Answer<Boolean>() {
                        @Override
                        public Boolean answer(InvocationOnMock invocation) throws Throwable {
-                               return requestParameters.containsKey(invocation.<String>getArgument(0));
+                               return requestParameters.get(invocation.<String>getArgument(0)) != null;
                        }
                });
                when(httpRequest.getParts()).thenAnswer(new Answer<String[]>() {