test_class.declarator: LOGGER = LoggerFactory.getLogger(PropertyFileLocalization.class)
test_class.modifier: private static final
test_class.original_string: private static final Logger LOGGER = LoggerFactory.getLogger(PropertyFileLocalization.class);
test_class.type: Logger
test_class.var_name: LOGGER
test_class.declarator: localization
test_class.modifier: private
test_class.original_string: private Localization localization;
test_class.type: Localization
test_class.var_name: localization
test_class.file: guja-core/src/test/java/com/wadpam/guja/i18n/PropertyFileLocalizationTest.java
test_class.identifier: PropertyFileLocalizationTest
test_case.body: @Test
    public void testUTF8PropertyFiles() throws Exception {
  
      localization = new PropertyFileLocalization(
          "i18n.TestBundle",
          new Locale.Builder()
              .setLanguage("sv")
              .build()
      );
  
      String localizedMessage = localization.getMessage("specialChars", "failed");
      LOGGER.info("åäö : {}", localizedMessage);
      assertTrue("åäö".equals(localizedMessage));
  
      localizedMessage = localization.getMessage("specialChars2", "", "test");
      LOGGER.info("test, åäö : {}", localizedMessage);
      assertTrue("test, åäö".equals(localizedMessage));
  
    }
test_case.class_method_signature: PropertyFileLocalizationTest.testUTF8PropertyFiles()
test_case.full_signature: @Test public void testUTF8PropertyFiles()
test_case.identifier: testUTF8PropertyFiles
test_case.invocations: build setLanguage getMessage info assertTrue als(lo getMessage info assertTrue als(lo
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testUTF8PropertyFiles()
focal_class.declarator: LOGGER = LoggerFactory.getLogger(PropertyFileLocalization.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = LoggerFactory.getLogger(PropertyFileLocalization.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: resourceBundle
focal_class.modifier: private
focal_class.original_string: private ResourceBundle resourceBundle;
focal_class.type: ResourceBundle
focal_class.var_name: resourceBundle
focal_class.declarator: locale
focal_class.modifier: private final
focal_class.original_string: private final Locale locale;
focal_class.type: Locale
focal_class.var_name: locale
focal_class.file: guja-core/src/main/java/com/wadpam/guja/i18n/PropertyFileLocalization.java
focal_class.identifier: PropertyFileLocalization
focal_class.class_method_signature: PropertyFileLocalization.PropertyFileLocalization(String bundleName, Locale locale)
focal_class.full_signature: public  PropertyFileLocalization(String bundleName, Locale locale)
focal_class.identifier: PropertyFileLocalization
focal_class.modifiers: public
focal_class.parameters: (String bundleName, Locale locale)
focal_class.signature:  PropertyFileLocalization(String bundleName, Locale locale)
focal_class.class_method_signature: PropertyFileLocalization.getMessage(String key, String defaultMessage, Object... parameters)
focal_class.full_signature: @Override public String getMessage(String key, String defaultMessage, Object... parameters)
focal_class.identifier: getMessage
focal_class.modifiers: @Override public
focal_class.parameters: (String key, String defaultMessage, Object... parameters)
focal_class.return: String
focal_class.signature: String getMessage(String key, String defaultMessage, Object... parameters)
focal_class.class_method_signature: PropertyFileLocalization.getLocale()
focal_class.full_signature: @Override public Locale getLocale()
focal_class.identifier: getLocale
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Locale
focal_class.signature: Locale getLocale()
focal_class.superclass: extends AbstractLocalization
focal_method.body: @Override
    public String getMessage(String key, String defaultMessage, Object... parameters) {
  
      if (null == resourceBundle) {
        return defaultMessage;
      }
  
      String message;
      try {
        message = resourceBundle.getString(key);
      } catch (MissingResourceException e) {
        message = defaultMessage;
      }
  
      if (parameters.length > 0) {
        message = String.format(message, parameters);
      }
  
      return message;
    }
focal_method.class_method_signature: PropertyFileLocalization.getMessage(String key, String defaultMessage, Object... parameters)
focal_method.full_signature: @Override public String getMessage(String key, String defaultMessage, Object... parameters)
focal_method.identifier: getMessage
focal_method.invocations: getString format
focal_method.modifiers: @Override public
focal_method.parameters: (String key, String defaultMessage, Object... parameters)
focal_method.return: String
focal_method.signature: String getMessage(String key, String defaultMessage, Object... parameters)