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_be_true_when_form_is_ready() {
          IncidentForm incidentForm = new IncidentForm();
          incidentForm.setForm(new Blob());
          when(incidentFormDao.getIncidentForm(PrimeroAppConfiguration.MODULE_ID_GBV, PrimeroAppConfiguration
                  .getApiBaseUrl())).thenReturn
                  (incidentForm);
          boolean result = incidentFormService.isReady();
          assertThat(result, is(true));
          verify(incidentFormDao, times(1)).getIncidentForm(PrimeroAppConfiguration.MODULE_ID_GBV, PrimeroAppConfiguration.getApiBaseUrl());
      }
test_case.class_method_signature: IncidentFormServiceImplTest.should_be_true_when_form_is_ready()
test_case.full_signature: @Test public void should_be_true_when_form_is_ready()
test_case.identifier: should_be_true_when_form_is_ready
test_case.invocations: setForm thenReturn when getIncidentForm getApiBaseUrl isReady assertThat is getIncidentForm verify times getApiBaseUrl
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void should_be_true_when_form_is_ready()
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: public boolean isReady() {
          IncidentForm incidentForm = incidentFormDao.getIncidentForm(PrimeroAppConfiguration
                  .MODULE_ID_GBV, PrimeroAppConfiguration.getApiBaseUrl());
          return incidentForm != null && incidentForm.getForm() != null;
      }
focal_method.class_method_signature: IncidentFormServiceImpl.isReady()
focal_method.full_signature: public boolean isReady()
focal_method.identifier: isReady
focal_method.invocations: getIncidentForm getApiBaseUrl getForm
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: boolean
focal_method.signature: boolean isReady()