test_class.declarator: incidentFormService
test_class.modifier: @InjectMocks
test_class.original_string: @InjectMocks
      IncidentFormServiceImpl incidentFormService;
test_class.type: IncidentFormServiceImpl
test_class.var_name: incidentFormService
test_class.declarator: incidentFormDao
test_class.modifier: @Mock
test_class.original_string: @Mock
      IncidentFormDao incidentFormDao;
test_class.type: IncidentFormDao
test_class.var_name: incidentFormDao
test_class.declarator: formForm = "{\n" +
              "  \"Incidents\": [\n" +
              "    {\n" +
              "      \"order\": 10,\n" +
              "      \"fields\": [\n" +
              "        {\n" +
              "          \"name\": \"incidentworker_name\",\n" +
              "          \"type\": \"text_field\",\n" +
              "          \"editable\": true,\n" +
              "          \"multi_select\": false,\n" +
              "          \"mobile_visible\":true,\n" +
              "          \"show_on_minify_form\":true,\n" +
              "          \"required\":false,\n" +
              "          \"display_name\": {\n" +
              "            \"en\": \"Field/Incident/Social Worker\"\n" +
              "          },\n" +
              "          \"help_text\": {\n" +
              "            \"en\": \"\"\n" +
              "          },\n" +
              "          \"option_strings_text\": {\n" +
              "            \"en\": []\n" +
              "          }\n" +
              "        }\n" +
              "      ],\n" +
              "      \"base_language\": \"en\",\n" +
              "      \"name\": {\n" +
              "        \"en\": \"Record Owner\"\n" +
              "      },\n" +
              "      \"help_text\": {\n" +
              "        \"en\": \"\"\n" +
              "      }\n" +
              "    }\n" +
              "  ]\n" +
              "}"
test_class.modifier: private
test_class.original_string: private String formForm = "{\n" +
              "  \"Incidents\": [\n" +
              "    {\n" +
              "      \"order\": 10,\n" +
              "      \"fields\": [\n" +
              "        {\n" +
              "          \"name\": \"incidentworker_name\",\n" +
              "          \"type\": \"text_field\",\n" +
              "          \"editable\": true,\n" +
              "          \"multi_select\": false,\n" +
              "          \"mobile_visible\":true,\n" +
              "          \"show_on_minify_form\":true,\n" +
              "          \"required\":false,\n" +
              "          \"display_name\": {\n" +
              "            \"en\": \"Field/Incident/Social Worker\"\n" +
              "          },\n" +
              "          \"help_text\": {\n" +
              "            \"en\": \"\"\n" +
              "          },\n" +
              "          \"option_strings_text\": {\n" +
              "            \"en\": []\n" +
              "          }\n" +
              "        }\n" +
              "      ],\n" +
              "      \"base_language\": \"en\",\n" +
              "      \"name\": {\n" +
              "        \"en\": \"Record Owner\"\n" +
              "      },\n" +
              "      \"help_text\": {\n" +
              "        \"en\": \"\"\n" +
              "      }\n" +
              "    }\n" +
              "  ]\n" +
              "}";
test_class.type: String
test_class.var_name: formForm
test_class.file: app/src/test/java/org/unicef/rapidreg/service/impl/IncidentFormServiceImplTest.java
test_class.identifier: IncidentFormServiceImplTest
test_case.body: @Test
      public void should_get_incident_form() throws IOException {
          IncidentForm incidentForm = new IncidentForm();
          incidentForm.setForm(new Blob(formForm.getBytes()));
          when(incidentFormDao.getIncidentForm(anyString(), anyString())).thenReturn(incidentForm);
          IncidentTemplateForm form = incidentFormService.getGBVTemplate();
  
          assertThat(form.getSections().size(), is(1));
  
          Section section = form.getSections().get(0);
          assertThat(section.getName().get("en"), is("Record Owner"));
          assertThat(section.getOrder(), is(10));
          assertThat(section.getHelpText().get("en"), is(""));
          assertThat(section.getBaseLanguage(), is("en"));
  
          Field field = section.getFields().get(0);
          assertThat(field.getName(), is("incidentworker_name"));
          assertThat(field.getDisplayName().get("en"), is("Field/Incident/Social Worker"));
          assertThat(field.getHelpText().get("en"), is(""));
          assertThat(field.getType(), is("text_field"));
          assertThat(field.getOptionStringsText().get("en").size(), is(0));
          assertThat(field.isShowOnMiniForm(), is(true));
          assertThat(field.isMultiSelect(), is(false));
          assertThat(field.isEditable(), is(true));
          assertThat(field.isRequired(), is(false));
          assertThat(field.getSubForm(), is(nullValue()));
      }
test_case.class_method_signature: IncidentFormServiceImplTest.should_get_incident_form()
test_case.full_signature: @Test public void should_get_incident_form()
test_case.identifier: should_get_incident_form
test_case.invocations: setForm getBytes thenReturn when getIncidentForm anyString anyString getGBVTemplate assertThat size getSections is get getSections assertThat get getName is assertThat getOrder is assertThat get getHelpText is assertThat getBaseLanguage is get getFields assertThat getName is assertThat get getDisplayName is assertThat get getHelpText is assertThat getType is assertThat size get getOptionStringsText is assertThat isShowOnMiniForm is assertThat isMultiSelect is assertThat isEditable is assertThat isRequired is assertThat getSubForm is nullValue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void should_get_incident_form()
focal_class.declarator: TAG = IncidentFormService.class.getSimpleName()
focal_class.modifier: public static final
focal_class.original_string: public static final String TAG = IncidentFormService.class.getSimpleName();
focal_class.type: String
focal_class.var_name: TAG
focal_class.declarator: ENG_VALUE = "en"
focal_class.modifier: private static final
focal_class.original_string: private static final String ENG_VALUE = "en";
focal_class.type: String
focal_class.var_name: ENG_VALUE
focal_class.declarator: SECTION_TYPE_OF_VIOLENCE = "Type of Violence"
focal_class.modifier: public static final
focal_class.original_string: public static final String SECTION_TYPE_OF_VIOLENCE = "Type of Violence";
focal_class.type: String
focal_class.var_name: SECTION_TYPE_OF_VIOLENCE
focal_class.declarator: SECTION_GBV_INCIDENT = "GBV Incident"
focal_class.modifier: public static final
focal_class.original_string: public static final String SECTION_GBV_INCIDENT = "GBV Incident";
focal_class.type: String
focal_class.var_name: SECTION_GBV_INCIDENT
focal_class.declarator: FIELD_INCIDENT_TYPE_OF_VIOLENCE = "gbv_sexual_violence_type"
focal_class.modifier: private static final
focal_class.original_string: private static final String FIELD_INCIDENT_TYPE_OF_VIOLENCE = "gbv_sexual_violence_type";
focal_class.type: String
focal_class.var_name: FIELD_INCIDENT_TYPE_OF_VIOLENCE
focal_class.declarator: FIELD_LOCATION_INCIDENT = "incident_location"
focal_class.modifier: private static final
focal_class.original_string: private static final String FIELD_LOCATION_INCIDENT = "incident_location";
focal_class.type: String
focal_class.var_name: FIELD_LOCATION_INCIDENT
focal_class.declarator: incidentFormDao
focal_class.modifier: private
focal_class.original_string: private IncidentFormDao incidentFormDao;
focal_class.type: IncidentFormDao
focal_class.var_name: incidentFormDao
focal_class.file: app/src/main/java/org/unicef/rapidreg/service/impl/IncidentFormServiceImpl.java
focal_class.identifier: IncidentFormServiceImpl
focal_class.interfaces: implements IncidentFormService
focal_class.class_method_signature: IncidentFormServiceImpl.IncidentFormServiceImpl(IncidentFormDao incidentFormDao)
focal_class.full_signature: public  IncidentFormServiceImpl(IncidentFormDao incidentFormDao)
focal_class.identifier: IncidentFormServiceImpl
focal_class.modifiers: public
focal_class.parameters: (IncidentFormDao incidentFormDao)
focal_class.signature:  IncidentFormServiceImpl(IncidentFormDao incidentFormDao)
focal_class.class_method_signature: IncidentFormServiceImpl.isReady()
focal_class.full_signature: public boolean isReady()
focal_class.identifier: isReady
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isReady()
focal_class.class_method_signature: IncidentFormServiceImpl.getGBVTemplate()
focal_class.full_signature: @Override public IncidentTemplateForm getGBVTemplate()
focal_class.identifier: getGBVTemplate
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: IncidentTemplateForm
focal_class.signature: IncidentTemplateForm getGBVTemplate()
focal_class.class_method_signature: IncidentFormServiceImpl.getIncidentTemplateForm(Blob form)
focal_class.full_signature: private IncidentTemplateForm getIncidentTemplateForm(Blob form)
focal_class.identifier: getIncidentTemplateForm
focal_class.modifiers: private
focal_class.parameters: (Blob form)
focal_class.return: IncidentTemplateForm
focal_class.signature: IncidentTemplateForm getIncidentTemplateForm(Blob form)
focal_class.class_method_signature: IncidentFormServiceImpl.saveOrUpdate(IncidentForm incidentForm)
focal_class.full_signature: public void saveOrUpdate(IncidentForm incidentForm)
focal_class.identifier: saveOrUpdate
focal_class.modifiers: public
focal_class.parameters: (IncidentForm incidentForm)
focal_class.return: void
focal_class.signature: void saveOrUpdate(IncidentForm incidentForm)
focal_class.class_method_signature: IncidentFormServiceImpl.getViolenceTypeList()
focal_class.full_signature: @Override public List<String> getViolenceTypeList()
focal_class.identifier: getViolenceTypeList
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: List<String>
focal_class.signature: List<String> getViolenceTypeList()
focal_class.class_method_signature: IncidentFormServiceImpl.getLocationList()
focal_class.full_signature: @Override public List<String> getLocationList()
focal_class.identifier: getLocationList
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: List<String>
focal_class.signature: List<String> getLocationList()
focal_method.body: @Override
      public IncidentTemplateForm getGBVTemplate() {
          Blob form = incidentFormDao.getIncidentForm(PrimeroAppConfiguration.MODULE_ID_GBV, PrimeroAppConfiguration
                  .getApiBaseUrl()).getForm();
          return getIncidentTemplateForm(form);
      }
focal_method.class_method_signature: IncidentFormServiceImpl.getGBVTemplate()
focal_method.full_signature: @Override public IncidentTemplateForm getGBVTemplate()
focal_method.identifier: getGBVTemplate
focal_method.invocations: getForm getIncidentForm getApiBaseUrl getIncidentTemplateForm
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: IncidentTemplateForm
focal_method.signature: IncidentTemplateForm getGBVTemplate()