diff --git a/gateleen-test/src/test/java/org/swisspush/gateleen/hook/ListenerTest.java b/gateleen-test/src/test/java/org/swisspush/gateleen/hook/ListenerTest.java index 116a5afa..081483a2 100755 --- a/gateleen-test/src/test/java/org/swisspush/gateleen/hook/ListenerTest.java +++ b/gateleen-test/src/test/java/org/swisspush/gateleen/hook/ListenerTest.java @@ -999,7 +999,7 @@ public void testHookHandleSearch_EmptyQueryParameter(TestContext context) { Response response = searchWithQueryParam("q","",400); - Assert.assertTrue(response.getBody().asString().contains("Bad Request")); + Assert.assertTrue(response.getBody().asString().contains("Only the 'q' parameter is allowed and can't be empty or null")); TestUtils.unregisterListener(defaultRegisterUrlListener); async.complete();