test_class.declarator: requestContext
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private ContainerRequestContext requestContext;
test_class.type: ContainerRequestContext
test_class.var_name: requestContext
test_class.declarator: uriInfo
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private UriInfo uriInfo;
test_class.type: UriInfo
test_class.var_name: uriInfo
test_class.declarator: responseCaptor
test_class.modifier: @Captor
      private
test_class.original_string: @Captor
      private ArgumentCaptor<Response> responseCaptor;
test_class.type: ArgumentCaptor<Response>
test_class.var_name: responseCaptor
test_class.file: util/src/test/java/org/microbule/util/jaxrs/ExtensionRequestFilterTest.java
test_class.identifier: ExtensionRequestFilterTest
test_class.superclass: extends MockObjectTestCase
test_case.body: @Test
      public void testGetWithoutParam() throws Exception {
          when(requestContext.getMethod()).thenReturn("GET");
          when(requestContext.getUriInfo()).thenReturn(uriInfo);
          final MultivaluedHashMap<String, String> queryParams = new MultivaluedHashMap<>();
          when(uriInfo.getQueryParameters()).thenReturn(queryParams);
  
          final StatusFilter filter = new StatusFilter();
          filter.filter(requestContext);
          verify(requestContext).getMethod();
          verify(requestContext).getUriInfo();
          verify(uriInfo).getQueryParameters();
          verifyNoMoreInteractions(requestContext, uriInfo);
      }
test_case.class_method_signature: ExtensionRequestFilterTest.testGetWithoutParam()
test_case.full_signature: @Test public void testGetWithoutParam()
test_case.identifier: testGetWithoutParam
test_case.invocations: thenReturn when getMethod thenReturn when getUriInfo thenReturn when getQueryParameters filter getMethod verify getUriInfo verify getQueryParameters verify verifyNoMoreInteractions
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetWithoutParam()
focal_class.file: util/src/main/java/org/microbule/util/jaxrs/ExtensionRequestFilter.java
focal_class.identifier: ExtensionRequestFilter
focal_class.interfaces: implements ContainerRequestFilter
focal_class.class_method_signature: ExtensionRequestFilter.createResponse(ContainerRequestContext requestContext)
focal_class.full_signature: protected abstract T createResponse(ContainerRequestContext requestContext)
focal_class.identifier: createResponse
focal_class.modifiers: protected abstract
focal_class.parameters: (ContainerRequestContext requestContext)
focal_class.return: T
focal_class.signature: T createResponse(ContainerRequestContext requestContext)
focal_class.class_method_signature: ExtensionRequestFilter.markerParam()
focal_class.full_signature: protected abstract String markerParam()
focal_class.identifier: markerParam
focal_class.modifiers: protected abstract
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String markerParam()
focal_class.class_method_signature: ExtensionRequestFilter.filter(ContainerRequestContext requestContext)
focal_class.full_signature: @Override public void filter(ContainerRequestContext requestContext)
focal_class.identifier: filter
focal_class.modifiers: @Override public
focal_class.parameters: (ContainerRequestContext requestContext)
focal_class.return: void
focal_class.signature: void filter(ContainerRequestContext requestContext)
focal_method.body: @Override
      public void filter(ContainerRequestContext requestContext) throws IOException {
          if ("GET".equals(requestContext.getMethod()) && requestContext.getUriInfo().getQueryParameters().containsKey(markerParam())) {
              requestContext.abortWith(
                      Response.ok(createResponse(requestContext))
                              .type(MediaType.APPLICATION_JSON_TYPE)
                              .build());
          }
      }
focal_method.class_method_signature: ExtensionRequestFilter.filter(ContainerRequestContext requestContext)
focal_method.full_signature: @Override public void filter(ContainerRequestContext requestContext)
focal_method.identifier: filter
focal_method.invocations: equals getMethod containsKey getQueryParameters getUriInfo markerParam abortWith build type ok createResponse
focal_method.modifiers: @Override public
focal_method.parameters: (ContainerRequestContext requestContext)
focal_method.return: void
focal_method.signature: void filter(ContainerRequestContext requestContext)