test_class.declarator: service = mock(GlobalPropertyService.class)
test_class.modifier: private static
test_class.original_string: private static IGlobalPropertyService service = mock(GlobalPropertyService.class);
test_class.type: IGlobalPropertyService
test_class.var_name: service
test_class.declarator: globalProperty
test_class.modifier: private static
test_class.original_string: private static GlobalPropertyDomain globalProperty;
test_class.type: GlobalPropertyDomain
test_class.var_name: globalProperty
test_class.declarator: resource
test_class.modifier: private static
test_class.original_string: private static GlobalPropertyResource resource;
test_class.type: GlobalPropertyResource
test_class.var_name: resource
test_class.file: fabric-manager/src/test/java/com/olacabs/fabric/manager/resource/GlobalPropertyResourceTest.java
test_class.identifier: GlobalPropertyResourceTest
test_case.body: @Test
      public void testValidSave() {
          doReturn(globalProperty).when(service).save(any(GlobalPropertyDomain.class));
  
          final Response response = resource.save(globalProperty);
          Assert.assertEquals(response.getStatus(), 201);
          Assert.assertEquals(response.getEntity(), globalProperty);
      }
test_case.class_method_signature: GlobalPropertyResourceTest.testValidSave()
test_case.full_signature: @Test public void testValidSave()
test_case.identifier: testValidSave
test_case.invocations: save when doReturn any save assertEquals getStatus assertEquals getEntity
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testValidSave()
focal_class.declarator: service
focal_class.modifier: private
focal_class.original_string: private IGlobalPropertyService service;
focal_class.type: IGlobalPropertyService
focal_class.var_name: service
focal_class.file: fabric-manager/src/main/java/com/olacabs/fabric/manager/resource/GlobalPropertyResource.java
focal_class.identifier: GlobalPropertyResource
focal_class.class_method_signature: GlobalPropertyResource.save(@NotNull @Valid final GlobalPropertyDomain globalProperty)
focal_class.full_signature: @POST @Consumes(MediaType.APPLICATION_JSON) @Timed @UnitOfWork @ApiOperation(value = "Save global property", response = GlobalPropertyDomain.class) public Response save(@NotNull @Valid final GlobalPropertyDomain globalProperty)
focal_class.identifier: save
focal_class.modifiers: @POST @Consumes(MediaType.APPLICATION_JSON) @Timed @UnitOfWork @ApiOperation(value = "Save global property", response = GlobalPropertyDomain.class) public
focal_class.parameters: (@NotNull @Valid final GlobalPropertyDomain globalProperty)
focal_class.return: Response
focal_class.signature: Response save(@NotNull @Valid final GlobalPropertyDomain globalProperty)
focal_class.class_method_signature: GlobalPropertyResource.get(@PathParam("id") final int id)
focal_class.full_signature: @GET @Timed @UnitOfWork(transactional = false) @Path("{id}") @ApiOperation(value = "Get global property by id", response = GlobalPropertyDomain.class) public Response get(@PathParam("id") final int id)
focal_class.identifier: get
focal_class.modifiers: @GET @Timed @UnitOfWork(transactional = false) @Path("{id}") @ApiOperation(value = "Get global property by id", response = GlobalPropertyDomain.class) public
focal_class.parameters: (@PathParam("id") final int id)
focal_class.return: Response
focal_class.signature: Response get(@PathParam("id") final int id)
focal_class.class_method_signature: GlobalPropertyResource.search(@QueryParam("name") final String name, @QueryParam("type") final String propertyType)
focal_class.full_signature: @GET @Timed @UnitOfWork(transactional = false) @ApiOperation(value = "Search global property based on name, param", response = Set.class) public Response search(@QueryParam("name") final String name, @QueryParam("type") final String propertyType)
focal_class.identifier: search
focal_class.modifiers: @GET @Timed @UnitOfWork(transactional = false) @ApiOperation(value = "Search global property based on name, param", response = Set.class) public
focal_class.parameters: (@QueryParam("name") final String name, @QueryParam("type") final String propertyType)
focal_class.return: Response
focal_class.signature: Response search(@QueryParam("name") final String name, @QueryParam("type") final String propertyType)
focal_class.class_method_signature: GlobalPropertyResource.delete(@PathParam("id") final int id)
focal_class.full_signature: @DELETE @Timed @UnitOfWork @Path("{id}") @ApiOperation(value = "Soft delete") public Response delete(@PathParam("id") final int id)
focal_class.identifier: delete
focal_class.modifiers: @DELETE @Timed @UnitOfWork @Path("{id}") @ApiOperation(value = "Soft delete") public
focal_class.parameters: (@PathParam("id") final int id)
focal_class.return: Response
focal_class.signature: Response delete(@PathParam("id") final int id)
focal_method.body: @POST
      @Consumes(MediaType.APPLICATION_JSON)
      @Timed
      @UnitOfWork
      @ApiOperation(value = "Save global property", response = GlobalPropertyDomain.class)
      public Response save(@NotNull @Valid final GlobalPropertyDomain globalProperty) {
          final GlobalPropertyDomain propertyDomain = service.save(globalProperty);
          return Response.status(Response.Status.CREATED).entity(propertyDomain).build();
      }
focal_method.class_method_signature: GlobalPropertyResource.save(@NotNull @Valid final GlobalPropertyDomain globalProperty)
focal_method.full_signature: @POST @Consumes(MediaType.APPLICATION_JSON) @Timed @UnitOfWork @ApiOperation(value = "Save global property", response = GlobalPropertyDomain.class) public Response save(@NotNull @Valid final GlobalPropertyDomain globalProperty)
focal_method.identifier: save
focal_method.invocations: save build entity status
focal_method.modifiers: @POST @Consumes(MediaType.APPLICATION_JSON) @Timed @UnitOfWork @ApiOperation(value = "Save global property", response = GlobalPropertyDomain.class) public
focal_method.parameters: (@NotNull @Valid final GlobalPropertyDomain globalProperty)
focal_method.return: Response
focal_method.signature: Response save(@NotNull @Valid final GlobalPropertyDomain globalProperty)