test_class.declarator: provider = new I18nConfigOptionsProvider()
test_class.modifier: private final
test_class.original_string: private final I18nConfigOptionsProvider provider = new I18nConfigOptionsProvider();
test_class.type: I18nConfigOptionsProvider
test_class.var_name: provider
test_class.declarator: uriI18N = URI.create("system:i18n")
test_class.modifier: private final
test_class.original_string: private final URI uriI18N = URI.create("system:i18n");
test_class.type: URI
test_class.var_name: uriI18N
test_class.declarator: empty = new ParameterOption("", "")
test_class.modifier: private final
test_class.original_string: private final ParameterOption empty = new ParameterOption("", "");
test_class.type: ParameterOption
test_class.var_name: empty
test_class.declarator: expectedLangEN = new ParameterOption("en", "English")
test_class.modifier: private final
test_class.original_string: private final ParameterOption expectedLangEN = new ParameterOption("en", "English");
test_class.type: ParameterOption
test_class.var_name: expectedLangEN
test_class.declarator: expectedLangFR = new ParameterOption("en", "anglais")
test_class.modifier: private final
test_class.original_string: private final ParameterOption expectedLangFR = new ParameterOption("en", "anglais");
test_class.type: ParameterOption
test_class.var_name: expectedLangFR
test_class.declarator: expectedCntryEN = new ParameterOption("US", "United States")
test_class.modifier: private final
test_class.original_string: private final ParameterOption expectedCntryEN = new ParameterOption("US", "United States");
test_class.type: ParameterOption
test_class.var_name: expectedCntryEN
test_class.declarator: expectedCntryFRJava8 = new ParameterOption("US", "Etats-Unis")
test_class.modifier: private final
test_class.original_string: private final ParameterOption expectedCntryFRJava8 = new ParameterOption("US", "Etats-Unis");
test_class.type: ParameterOption
test_class.var_name: expectedCntryFRJava8
test_class.declarator: expectedCntryFRJava9 = new ParameterOption("US", "États-Unis");
test_class.modifier: private final
test_class.original_string: private final ParameterOption expectedCntryFRJava9 = new ParameterOption("US", "États-Unis");
test_class.type: ParameterOption
test_class.var_name: expectedCntryFRJava9
test_class.file: bundles/org.openhab.core.config.core/src/test/java/org/openhab/core/config/core/internal/i18n/I18nConfigOptionsProviderTest.java
test_class.identifier: I18nConfigOptionsProviderTest
test_case.body: @Test
      public void testRegion() {
          assertThat(provider.getParameterOptions(uriI18N, "region", null, Locale.US), hasItem(expectedCntryEN));
          assertThat(provider.getParameterOptions(uriI18N, "region", null, Locale.US), not(hasItem(empty)));
  
          assertThat(provider.getParameterOptions(uriI18N, "region", null, Locale.FRENCH),
                  anyOf(hasItem(expectedCntryFRJava8), hasItem(expectedCntryFRJava9)));
          assertThat(provider.getParameterOptions(uriI18N, "region", null, Locale.FRENCH), not(hasItem(empty)));
  
          assertThat(provider.getParameterOptions(uriI18N, "region", null, null), not(IsEmptyCollection.empty()));
      }
test_case.class_method_signature: I18nConfigOptionsProviderTest.testRegion()
test_case.full_signature: @Test public void testRegion()
test_case.identifier: testRegion
test_case.invocations: assertThat getParameterOptions hasItem assertThat getParameterOptions not hasItem assertThat getParameterOptions anyOf hasItem hasItem assertThat getParameterOptions not hasItem assertThat getParameterOptions not empty
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testRegion()
focal_class.declarator: NO_OFFSET_FORMAT = "(GMT) %s"
focal_class.modifier: private static final
focal_class.original_string: private static final String NO_OFFSET_FORMAT = "(GMT) %s";
focal_class.type: String
focal_class.var_name: NO_OFFSET_FORMAT
focal_class.declarator: NEGATIVE_OFFSET_FORMAT = "(GMT%d:%02d) %s"
focal_class.modifier: private static final
focal_class.original_string: private static final String NEGATIVE_OFFSET_FORMAT = "(GMT%d:%02d) %s";
focal_class.type: String
focal_class.var_name: NEGATIVE_OFFSET_FORMAT
focal_class.declarator: POSITIVE_OFFSET_FORMAT = "(GMT+%d:%02d) %s"
focal_class.modifier: private static final
focal_class.original_string: private static final String POSITIVE_OFFSET_FORMAT = "(GMT+%d:%02d) %s";
focal_class.type: String
focal_class.var_name: POSITIVE_OFFSET_FORMAT
focal_class.file: bundles/org.openhab.core.config.core/src/main/java/org/openhab/core/config/core/internal/i18n/I18nConfigOptionsProvider.java
focal_class.identifier: I18nConfigOptionsProvider
focal_class.interfaces: implements ConfigOptionProvider
focal_class.class_method_signature: I18nConfigOptionsProvider.getParameterOptions(URI uri, String param, @Nullable String context,
              @Nullable Locale locale)
focal_class.full_signature: @Override public @Nullable Collection<ParameterOption> getParameterOptions(URI uri, String param, @Nullable String context,
              @Nullable Locale locale)
focal_class.identifier: getParameterOptions
focal_class.modifiers: @Override public @Nullable
focal_class.parameters: (URI uri, String param, @Nullable String context,
              @Nullable Locale locale)
focal_class.return: Collection<ParameterOption>
focal_class.signature: Collection<ParameterOption> getParameterOptions(URI uri, String param, @Nullable String context,
              @Nullable Locale locale)
focal_class.class_method_signature: I18nConfigOptionsProvider.processParamType(String param, @Nullable Locale locale,
              Locale translation)
focal_class.full_signature: private @Nullable Collection<ParameterOption> processParamType(String param, @Nullable Locale locale,
              Locale translation)
focal_class.identifier: processParamType
focal_class.modifiers: private @Nullable
focal_class.parameters: (String param, @Nullable Locale locale,
              Locale translation)
focal_class.return: Collection<ParameterOption>
focal_class.signature: Collection<ParameterOption> processParamType(String param, @Nullable Locale locale,
              Locale translation)
focal_class.class_method_signature: I18nConfigOptionsProvider.getTimeZoneRepresentation(TimeZone tz)
focal_class.full_signature: private static String getTimeZoneRepresentation(TimeZone tz)
focal_class.identifier: getTimeZoneRepresentation
focal_class.modifiers: private static
focal_class.parameters: (TimeZone tz)
focal_class.return: String
focal_class.signature: String getTimeZoneRepresentation(TimeZone tz)
focal_class.class_method_signature: I18nConfigOptionsProvider.getAvailable(@Nullable Locale locale,
              Function<Locale, ParameterOption> mapFunction)
focal_class.full_signature: private Collection<ParameterOption> getAvailable(@Nullable Locale locale,
              Function<Locale, ParameterOption> mapFunction)
focal_class.identifier: getAvailable
focal_class.modifiers: private
focal_class.parameters: (@Nullable Locale locale,
              Function<Locale, ParameterOption> mapFunction)
focal_class.return: Collection<ParameterOption>
focal_class.signature: Collection<ParameterOption> getAvailable(@Nullable Locale locale,
              Function<Locale, ParameterOption> mapFunction)
focal_method.body: @Override
      public @Nullable Collection<ParameterOption> getParameterOptions(URI uri, String param, @Nullable String context,
              @Nullable Locale locale) {
          if ("system:i18n".equals(uri.toString())) {
              Locale translation = locale != null ? locale : Locale.getDefault();
              return processParamType(param, locale, translation);
          }
          return null;
      }
focal_method.class_method_signature: I18nConfigOptionsProvider.getParameterOptions(URI uri, String param, @Nullable String context,
              @Nullable Locale locale)
focal_method.full_signature: @Override public @Nullable Collection<ParameterOption> getParameterOptions(URI uri, String param, @Nullable String context,
              @Nullable Locale locale)
focal_method.identifier: getParameterOptions
focal_method.invocations: equals toString getDefault processParamType
focal_method.modifiers: @Override public @Nullable
focal_method.parameters: (URI uri, String param, @Nullable String context,
              @Nullable Locale locale)
focal_method.return: Collection<ParameterOption>
focal_method.signature: Collection<ParameterOption> getParameterOptions(URI uri, String param, @Nullable String context,
              @Nullable Locale locale)