test_class.declarator: expectedUrl = "http://35.61.65.113:8443/"
test_class.modifier: private
test_class.original_string: private String expectedUrl = "http://35.61.65.113:8443/";
test_class.type: String
test_class.var_name: expectedUrl
test_class.file: app/src/test/java/org/unicef/rapidreg/utils/TextUtilsTest.java
test_class.identifier: TextUtilsTest
test_case.body: @Test
      public void should_truncate_string_by_double_colon_when_source_level_equals_2() {
          String result = TextUtils.truncateByDoubleColons("L0::L1", 2);
  
          assertThat(result, is("L0::L1"));
      }
test_case.class_method_signature: TextUtilsTest.should_truncate_string_by_double_colon_when_source_level_equals_2()
test_case.full_signature: @Test public void should_truncate_string_by_double_colon_when_source_level_equals_2()
test_case.identifier: should_truncate_string_by_double_colon_when_source_level_equals_2
test_case.invocations: truncateByDoubleColons assertThat is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void should_truncate_string_by_double_colon_when_source_level_equals_2()
focal_class.file: app/src/main/java/org/unicef/rapidreg/utils/TextUtils.java
focal_class.identifier: TextUtils
focal_class.class_method_signature: TextUtils.isEmpty(String url)
focal_class.full_signature: public static boolean isEmpty(String url)
focal_class.identifier: isEmpty
focal_class.modifiers: public static
focal_class.parameters: (String url)
focal_class.return: boolean
focal_class.signature: boolean isEmpty(String url)
focal_class.class_method_signature: TextUtils.getLastSevenNumbers(String uniqueId)
focal_class.full_signature: public static String getLastSevenNumbers(String uniqueId)
focal_class.identifier: getLastSevenNumbers
focal_class.modifiers: public static
focal_class.parameters: (String uniqueId)
focal_class.return: String
focal_class.signature: String getLastSevenNumbers(String uniqueId)
focal_class.class_method_signature: TextUtils.lintUrl(String url)
focal_class.full_signature: @NonNull public static String lintUrl(String url)
focal_class.identifier: lintUrl
focal_class.modifiers: @NonNull public static
focal_class.parameters: (String url)
focal_class.return: String
focal_class.signature: String lintUrl(String url)
focal_class.class_method_signature: TextUtils.truncateByDoubleColons(String source, int level)
focal_class.full_signature: public static String truncateByDoubleColons(String source, int level)
focal_class.identifier: truncateByDoubleColons
focal_class.modifiers: public static
focal_class.parameters: (String source, int level)
focal_class.return: String
focal_class.signature: String truncateByDoubleColons(String source, int level)
focal_class.class_method_signature: TextUtils.join(CharSequence separator, CharSequence... elements)
focal_class.full_signature: private static String join(CharSequence separator, CharSequence... elements)
focal_class.identifier: join
focal_class.modifiers: private static
focal_class.parameters: (CharSequence separator, CharSequence... elements)
focal_class.return: String
focal_class.signature: String join(CharSequence separator, CharSequence... elements)
focal_method.body: public static String truncateByDoubleColons(String source, int level) {
          if (isEmpty(source)) {
              return source;
          }
          if (level <= 0) {
              throw new IllegalArgumentException("Level must be larger than 0");
          }
          List<String> original = Arrays.asList(source.split("::"));
          if (original.size() <= level) {
              return source;
          }
          List<String> result = original.subList(level, original.size());
          return join("::", result.toArray(new String[0]));
      }
focal_method.class_method_signature: TextUtils.truncateByDoubleColons(String source, int level)
focal_method.full_signature: public static String truncateByDoubleColons(String source, int level)
focal_method.identifier: truncateByDoubleColons
focal_method.invocations: isEmpty asList split size subList size join toArray
focal_method.modifiers: public static
focal_method.parameters: (String source, int level)
focal_method.return: String
focal_method.signature: String truncateByDoubleColons(String source, int level)