test_class.file: bricklink/src/test/java/org/kleini/bricklink/api/UpdateInventoryRequestTest.java
test_class.identifier: UpdateInventoryRequestTest
test_case.body: @Test
      public void testGetBody() throws Exception {
          Inventory update = new Inventory();
          update.setIdentifier(123);
          update.setPrice(new BigDecimal("1.00"));
          String body = new UpdateInventoryRequest(update, "inventory_id", "unit_price").getBody();
          assertEquals("{\"inventory_id\":123,\"unit_price\":1.00}", body);
      }
test_case.class_method_signature: UpdateInventoryRequestTest.testGetBody()
test_case.full_signature: @Test public void testGetBody()
test_case.identifier: testGetBody
test_case.invocations: setIdentifier setPrice getBody assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetBody()
focal_class.declarator: inventory
focal_class.modifier: private final
focal_class.original_string: private final Inventory inventory;
focal_class.type: Inventory
focal_class.var_name: inventory
focal_class.declarator: fields
focal_class.modifier: private
focal_class.original_string: private String[] fields;
focal_class.type: String[]
focal_class.var_name: fields
focal_class.file: bricklink/src/main/java/org/kleini/bricklink/api/UpdateInventoryRequest.java
focal_class.identifier: UpdateInventoryRequest
focal_class.class_method_signature: UpdateInventoryRequest.UpdateInventoryRequest(Inventory inventory, String... fields)
focal_class.full_signature: public  UpdateInventoryRequest(Inventory inventory, String... fields)
focal_class.identifier: UpdateInventoryRequest
focal_class.modifiers: public
focal_class.parameters: (Inventory inventory, String... fields)
focal_class.signature:  UpdateInventoryRequest(Inventory inventory, String... fields)
focal_class.class_method_signature: UpdateInventoryRequest.getPath()
focal_class.full_signature: @Override public String getPath()
focal_class.identifier: getPath
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getPath()
focal_class.class_method_signature: UpdateInventoryRequest.getParameters()
focal_class.full_signature: @Override public Parameter[] getParameters()
focal_class.identifier: getParameters
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Parameter[]
focal_class.signature: Parameter[] getParameters()
focal_class.class_method_signature: UpdateInventoryRequest.getBody()
focal_class.full_signature: @Override public String getBody()
focal_class.identifier: getBody
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getBody()
focal_class.class_method_signature: UpdateInventoryRequest.getParser()
focal_class.full_signature: @Override public UpdateInventoryParser getParser()
focal_class.identifier: getParser
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: UpdateInventoryParser
focal_class.signature: UpdateInventoryParser getParser()
focal_class.superclass: extends AbstractPutRequest<UpdateInventoryResponse>
focal_method.body: @Override
      public String getBody() throws Exception {
          Set<String> properties = new HashSet<String>();
          for (String field : fields) {
              properties.add(field);
          }
          SimpleBeanPropertyFilter filter = new SimpleBeanPropertyFilter.FilterExceptFilter(properties);
          SimpleFilterProvider provider = new SimpleFilterProvider();
          provider.addFilter("update inventory request filter", filter);
          return mapper.writer(provider).writeValueAsString(inventory);
      }
focal_method.class_method_signature: UpdateInventoryRequest.getBody()
focal_method.full_signature: @Override public String getBody()
focal_method.identifier: getBody
focal_method.invocations: add addFilter writeValueAsString writer
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: String
focal_method.signature: String getBody()