common/src/test/java/com/kakoo/foundation/common/resource/properties/test/TestPropertiesAnnotations.java
/**
     * Test the retrieving of a I18N property on an annotated field in specific locale.
     */
Test the retrieving of a I18N property on an annotated field in specific locale.
Test the retrieving of a I18N property on an annotated field in specific locale .
@SuppressWarnings({ "static-method", "nls" })
    @Test
    public final void testRetrieveKeyI18NPropertyOtherLocale()
    {
        Locale.setDefault(Locale.ITALIAN);
        TestEasyPropertiesObject object = new TestEasyPropertiesObject();
        Assert.assertEquals(getExpectedYellowColorName(), object.getColorName());
    }
@ SuppressWarnings ( { "static-method" , "nls" } ) @ Test public final void testRetrieveKeyI18NPropertyOtherLocale ( ) { Locale . setDefault ( Locale . ITALIAN ) ; TestEasyPropertiesObject object = new TestEasyPropertiesObject ( ) ; Assert . assertEquals ( getExpectedYellowColorName ( ) , object . getColorName ( ) ) ; }
Test the retrieving of a I18N property on an annotated field in specific locale.
Test the retrieving of a I18N property on an annotated field in specific locale .
// Property value is injected at object construction time! So it's important to change the locale before the // object is created.