private static void assertQueryParamThrowsException(String requestMethod, String override) { try { testQueryParam(requestMethod, override); fail("Expected WebApplicationException to be thrown"); } catch (WebApplicationException e) { assertEquals(e.getResponse().getStatus(), Response.Status.BAD_REQUEST.getStatusCode()); } }
private static void assertQueryParamOverridesMethod(String requestMethod, String override) { String resultMethod = testQueryParam(requestMethod, override); assertEqualsIgnoreCase(resultMethod, override); }