test_class.declarator: tableMetadataManager
test_class.modifier: private
test_class.original_string: private TableMetadataManager tableMetadataManager;
test_class.type: TableMetadataManager
test_class.var_name: tableMetadataManager
test_class.declarator: elasticsearchServer
test_class.modifier: private
test_class.original_string: private MockElasticsearchServer elasticsearchServer;
test_class.type: MockElasticsearchServer
test_class.var_name: elasticsearchServer
test_class.declarator: hazelcastInstance
test_class.modifier: private
test_class.original_string: private HazelcastInstance hazelcastInstance;
test_class.type: HazelcastInstance
test_class.var_name: hazelcastInstance
test_class.declarator: queryExecutor
test_class.modifier: private
test_class.original_string: private QueryExecutor queryExecutor;
test_class.type: QueryExecutor
test_class.var_name: queryExecutor
test_class.file: real-time/foxtrot/foxtrot-server/src/test/java/com/flipkart/foxtrot/server/resources/AsyncResourceTest.java
test_class.identifier: AsyncResourceTest
test_class.superclass: extends ResourceTest
test_case.body: @Test
      public void testGetResponseInvalidKey() throws Exception {
          GroupRequest groupRequest = new GroupRequest();
          groupRequest.setTable(TestUtils.TEST_TABLE_NAME);
          groupRequest.setNesting(Arrays.asList("os", "device", "version"));
  
          AsyncDataToken dataToken = queryExecutor.executeAsync(groupRequest);
          Thread.sleep(1000);
  
          try {
              client().resource(String.format("/v1/async/%s/dummy", dataToken.getAction())).type(MediaType.APPLICATION_JSON_TYPE).get(GroupResponse.class);
          } catch (UniformInterfaceException ex) {
              assertEquals(Response.Status.INTERNAL_SERVER_ERROR.getStatusCode(), ex.getResponse().getStatus());
          }
      }
test_case.class_method_signature: AsyncResourceTest.testGetResponseInvalidKey()
test_case.full_signature: @Test public void testGetResponseInvalidKey()
test_case.identifier: testGetResponseInvalidKey
test_case.invocations: setTable setNesting asList executeAsync sleep get type resource client format getAction assertEquals getStatusCode getStatus getResponse
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetResponseInvalidKey()
focal_class.declarator: logger = LoggerFactory.getLogger(AsyncResource.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger logger = LoggerFactory.getLogger(AsyncResource.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.file: real-time/foxtrot/foxtrot-server/src/main/java/com/flipkart/foxtrot/server/resources/AsyncResource.java
focal_class.identifier: AsyncResource
focal_class.class_method_signature: AsyncResource.getResponse(@PathParam("action") final String action, @NotNull @PathParam("id") final String id)
focal_class.full_signature: @GET @Path("/{action}/{id}") public Response getResponse(@PathParam("action") final String action, @NotNull @PathParam("id") final String id)
focal_class.identifier: getResponse
focal_class.modifiers: @GET @Path("/{action}/{id}") public
focal_class.parameters: (@PathParam("action") final String action, @NotNull @PathParam("id") final String id)
focal_class.return: Response
focal_class.signature: Response getResponse(@PathParam("action") final String action, @NotNull @PathParam("id") final String id)
focal_class.class_method_signature: AsyncResource.getResponsePost(final AsyncDataToken dataToken)
focal_class.full_signature: @POST public Response getResponsePost(final AsyncDataToken dataToken)
focal_class.identifier: getResponsePost
focal_class.modifiers: @POST public
focal_class.parameters: (final AsyncDataToken dataToken)
focal_class.return: Response
focal_class.signature: Response getResponsePost(final AsyncDataToken dataToken)
focal_class.class_method_signature: AsyncResource.getData(final AsyncDataToken dataToken)
focal_class.full_signature: private ActionResponse getData(final AsyncDataToken dataToken)
focal_class.identifier: getData
focal_class.modifiers: private
focal_class.parameters: (final AsyncDataToken dataToken)
focal_class.return: ActionResponse
focal_class.signature: ActionResponse getData(final AsyncDataToken dataToken)
focal_method.body: @GET
      @Path("/{action}/{id}")
      public Response getResponse(@PathParam("action") final String action, @NotNull @PathParam("id") final String id) {
          return Response.ok(getData(new AsyncDataToken(action, id))).build();
      }
focal_method.class_method_signature: AsyncResource.getResponse(@PathParam("action") final String action, @NotNull @PathParam("id") final String id)
focal_method.full_signature: @GET @Path("/{action}/{id}") public Response getResponse(@PathParam("action") final String action, @NotNull @PathParam("id") final String id)
focal_method.identifier: getResponse
focal_method.invocations: build ok getData
focal_method.modifiers: @GET @Path("/{action}/{id}") public
focal_method.parameters: (@PathParam("action") final String action, @NotNull @PathParam("id") final String id)
focal_method.return: Response
focal_method.signature: Response getResponse(@PathParam("action") final String action, @NotNull @PathParam("id") final String id)