test_class.declarator: LOGGER = LoggerFactory.getLogger(FormJsonConverterTest.class)
test_class.modifier: private static final
test_class.original_string: private static final Logger LOGGER = LoggerFactory.getLogger(FormJsonConverterTest.class);
test_class.type: Logger
test_class.var_name: LOGGER
test_class.declarator: JSON_RESOURCE_1 = "org/flowable/editor/form/converter/form_1.json"
test_class.modifier: private static final
test_class.original_string: private static final String JSON_RESOURCE_1 = "org/flowable/editor/form/converter/form_1.json";
test_class.type: String
test_class.var_name: JSON_RESOURCE_1
test_class.declarator: objectMapper = new ObjectMapper()
test_class.modifier: private static final
test_class.original_string: private static final ObjectMapper objectMapper = new ObjectMapper();
test_class.type: ObjectMapper
test_class.var_name: objectMapper
test_class.file: modules/flowable-form-json-converter/src/test/java/org/flowable/editor/form/converter/FormJsonConverterTest.java
test_class.identifier: FormJsonConverterTest
test_case.body: @Test
      public void testSimpleJsonForm() throws Exception {
  
          String testJsonResource = readJsonToString(JSON_RESOURCE_1);
          SimpleFormModel formModel = new FormJsonConverter().convertToFormModel(testJsonResource);
  
          assertThat(formModel).isNotNull();
          assertThat(formModel.getFields()).isNotNull();
          assertThat(formModel.getFields()).hasSize(1);
  
          FormField formField = formModel.getFields().get(0);
          assertThat(formField.getId()).isEqualTo("input1");
          assertThat(formField.getName()).isEqualTo("Input1");
          assertThat(formField.getType()).isEqualTo("text");
          assertThat(formField.isRequired()).isFalse();
          assertThat(formField.getPlaceholder()).isEqualTo("empty");
      }
test_case.class_method_signature: FormJsonConverterTest.testSimpleJsonForm()
test_case.full_signature: @Test public void testSimpleJsonForm()
test_case.identifier: testSimpleJsonForm
test_case.invocations: readJsonToString convertToFormModel isNotNull assertThat isNotNull assertThat getFields hasSize assertThat getFields get getFields isEqualTo assertThat getId isEqualTo assertThat getName isEqualTo assertThat getType isFalse assertThat isRequired isEqualTo assertThat getPlaceholder
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSimpleJsonForm()
focal_class.declarator: objectMapper = new ObjectMapper()
focal_class.modifier: protected
focal_class.original_string: protected ObjectMapper objectMapper = new ObjectMapper();
focal_class.type: ObjectMapper
focal_class.var_name: objectMapper
focal_class.file: modules/flowable-form-json-converter/src/main/java/org/flowable/editor/form/converter/FormJsonConverter.java
focal_class.identifier: FormJsonConverter
focal_class.class_method_signature: FormJsonConverter.convertToFormModel(String modelJson)
focal_class.full_signature: public SimpleFormModel convertToFormModel(String modelJson)
focal_class.identifier: convertToFormModel
focal_class.modifiers: public
focal_class.parameters: (String modelJson)
focal_class.return: SimpleFormModel
focal_class.signature: SimpleFormModel convertToFormModel(String modelJson)
focal_class.class_method_signature: FormJsonConverter.convertToJson(SimpleFormModel definition)
focal_class.full_signature: public String convertToJson(SimpleFormModel definition)
focal_class.identifier: convertToJson
focal_class.modifiers: public
focal_class.parameters: (SimpleFormModel definition)
focal_class.return: String
focal_class.signature: String convertToJson(SimpleFormModel definition)
focal_method.body: public SimpleFormModel convertToFormModel(String modelJson) {
          try {
              SimpleFormModel definition = objectMapper.readValue(modelJson, SimpleFormModel.class);
  
              return definition;
          } catch (Exception e) {
              throw new FlowableFormJsonException("Error reading form json", e);
          }
      }
focal_method.class_method_signature: FormJsonConverter.convertToFormModel(String modelJson)
focal_method.full_signature: public SimpleFormModel convertToFormModel(String modelJson)
focal_method.identifier: convertToFormModel
focal_method.invocations: readValue
focal_method.modifiers: public
focal_method.parameters: (String modelJson)
focal_method.return: SimpleFormModel
focal_method.signature: SimpleFormModel convertToFormModel(String modelJson)