test_class.file: app/src/test/java/org/unicef/rapidreg/utils/UtilsTest.java
test_class.identifier: UtilsTest
test_case.body: @Test
      public void should_convert_string_to_map() {
          String mapString = "{a=1, b=2}";
          Map<String, String> map = Utils.convert(mapString);
  
          assertThat(map.size(), is(2));
          assertThat(map.get("a"), is("1"));
          assertThat(map.get("b"), is("2"));
      }
test_case.class_method_signature: UtilsTest.should_convert_string_to_map()
test_case.full_signature: @Test public void should_convert_string_to_map()
test_case.identifier: should_convert_string_to_map
test_case.invocations: convert assertThat size is assertThat get is assertThat get is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void should_convert_string_to_map()
focal_class.declarator: TAG = Utils.class.getSimpleName()
focal_class.modifier: private static final
focal_class.original_string: private static final String TAG = Utils.class.getSimpleName();
focal_class.type: String
focal_class.var_name: TAG
focal_class.file: app/src/main/java/org/unicef/rapidreg/utils/Utils.java
focal_class.identifier: Utils
focal_class.class_method_signature: Utils.toStringResult(List<String> result)
focal_class.full_signature: public static String toStringResult(List<String> result)
focal_class.identifier: toStringResult
focal_class.modifiers: public static
focal_class.parameters: (List<String> result)
focal_class.return: String
focal_class.signature: String toStringResult(List<String> result)
focal_class.class_method_signature: Utils.convert(String mapString)
focal_class.full_signature: public static Map convert(String mapString)
focal_class.identifier: convert
focal_class.modifiers: public static
focal_class.parameters: (String mapString)
focal_class.return: Map
focal_class.signature: Map convert(String mapString)
focal_class.class_method_signature: Utils.checkFormat(int len)
focal_class.full_signature: private static void checkFormat(int len)
focal_class.identifier: checkFormat
focal_class.modifiers: private static
focal_class.parameters: (int len)
focal_class.return: void
focal_class.signature: void checkFormat(int len)
focal_class.class_method_signature: Utils.getRegisterDateAsDdMmYyyy(String registrationDateString)
focal_class.full_signature: public static Date getRegisterDateAsDdMmYyyy(String registrationDateString)
focal_class.identifier: getRegisterDateAsDdMmYyyy
focal_class.modifiers: public static
focal_class.parameters: (String registrationDateString)
focal_class.return: Date
focal_class.signature: Date getRegisterDateAsDdMmYyyy(String registrationDateString)
focal_class.class_method_signature: Utils.getRegisterDateByYyyyMmDd(String registrationDateString)
focal_class.full_signature: public static Date getRegisterDateByYyyyMmDd(String registrationDateString)
focal_class.identifier: getRegisterDateByYyyyMmDd
focal_class.modifiers: public static
focal_class.parameters: (String registrationDateString)
focal_class.return: Date
focal_class.signature: Date getRegisterDateByYyyyMmDd(String registrationDateString)
focal_class.class_method_signature: Utils.clearAudioFile(String fileName)
focal_class.full_signature: public static void clearAudioFile(String fileName)
focal_class.identifier: clearAudioFile
focal_class.modifiers: public static
focal_class.parameters: (String fileName)
focal_class.return: void
focal_class.signature: void clearAudioFile(String fileName)
focal_class.class_method_signature: Utils.showMessageByToast(Context context, int ResId, int duration)
focal_class.full_signature: public static void showMessageByToast(Context context, int ResId, int duration)
focal_class.identifier: showMessageByToast
focal_class.modifiers: public static
focal_class.parameters: (Context context, int ResId, int duration)
focal_class.return: void
focal_class.signature: void showMessageByToast(Context context, int ResId, int duration)
focal_class.class_method_signature: Utils.showMessageByToast(Context context, String message, int duration)
focal_class.full_signature: public static void showMessageByToast(Context context, String message, int duration)
focal_class.identifier: showMessageByToast
focal_class.modifiers: public static
focal_class.parameters: (Context context, String message, int duration)
focal_class.return: void
focal_class.signature: void showMessageByToast(Context context, String message, int duration)
focal_class.class_method_signature: Utils.initToastStyle(Context context, Toast toast)
focal_class.full_signature: private static void initToastStyle(Context context, Toast toast)
focal_class.identifier: initToastStyle
focal_class.modifiers: private static
focal_class.parameters: (Context context, Toast toast)
focal_class.return: void
focal_class.signature: void initToastStyle(Context context, Toast toast)
focal_method.body: public static Map convert(String mapString) {
          Map res = new HashMap<>();
  
          String[] pairs = mapString.substring(1, mapString.length() - 1).split(",");
  
          for (String pair : pairs) {
              String[] keyValue = pair.trim().split("=");
  
              checkFormat(keyValue.length);
              res.put(keyValue[0], keyValue[1]);
          }
          return res;
      }
focal_method.class_method_signature: Utils.convert(String mapString)
focal_method.full_signature: public static Map convert(String mapString)
focal_method.identifier: convert
focal_method.invocations: split substring length split trim checkFormat put
focal_method.modifiers: public static
focal_method.parameters: (String mapString)
focal_method.return: Map
focal_method.signature: Map convert(String mapString)