Class DefaultFormatFactoryTest

java.lang.Object
de.hybris.platform.servicelayer.i18n.impl.DefaultFormatFactoryTest

@UnitTest public class DefaultFormatFactoryTest extends Object
Test covering FormatFactory service.
  • Constructor Details

    • DefaultFormatFactoryTest

      public DefaultFormatFactoryTest()
  • Method Details

    • setUp

      public void setUp()
    • tearDown

      public void tearDown()
    • testGetCurrencyFormat

      public void testGetCurrencyFormat()
    • testGetCurrencyFormatWithLocale

      public void testGetCurrencyFormatWithLocale()
    • testGetCurrencyFormatWithCurrencyWithoutFractionSymbol

      public void testGetCurrencyFormatWithCurrencyWithoutFractionSymbol()
    • testGetCurrencyFormatWithCurrencyWithFractionAndSymbol

      public void testGetCurrencyFormatWithCurrencyWithFractionAndSymbol()
    • testGetNumberFormat

      public void testGetNumberFormat()
    • testGetNumberFormatWithLocale

      public void testGetNumberFormatWithLocale()
    • testGetIntegerFormat

      public void testGetIntegerFormat()
    • testGetIntegerFormatWithLocale

      public void testGetIntegerFormatWithLocale()
    • testGetPercentFormat

      public void testGetPercentFormat()
    • testGetPercentFormatWithLocale

      public void testGetPercentFormatWithLocale()
    • testGetTimeFormatInvalid

      public void testGetTimeFormatInvalid()
    • testGetTimeFormat

      public void testGetTimeFormat()
    • testGetDateTimeFormat

      public void testGetDateTimeFormat()
    • testGetTimeFormatWithLocale

      public void testGetTimeFormatWithLocale()
    • testGetDateTimeFormatWithLocale

      public void testGetDateTimeFormatWithLocale()
    • testSimpleDateFormat

      public void testSimpleDateFormat()
      Example of use FormatFactory to apply pattern to DateFormat.
    • testSimpleDateFormatWithLocale

      public void testSimpleDateFormatWithLocale()
      Example of use FormatFactory to apply pattern to DateFormat with custom Locale.
    • shouldCreateSimpleDateFormatObjectOfGivenFormatForCurrentLocale

      public void shouldCreateSimpleDateFormatObjectOfGivenFormatForCurrentLocale()
    • shouldThrowNullPointerExceptionWhenCreateSimpleDateFormatAndFormatIsNull

      public void shouldThrowNullPointerExceptionWhenCreateSimpleDateFormatAndFormatIsNull()