Class DefaultFormatFactoryTest
- java.lang.Object
-
- de.hybris.platform.servicelayer.i18n.impl.DefaultFormatFactoryTest
-
@UnitTest public class DefaultFormatFactoryTest extends java.lang.Object
Test coveringFormatFactoryservice.
-
-
Constructor Summary
Constructors Constructor Description DefaultFormatFactoryTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()voidshouldCreateSimpleDateFormatObjectOfGivenFormatForCurrentLocale()voidshouldThrowNullPointerExceptionWhenCreateSimpleDateFormatAndFormatIsNull()voidtearDown()voidtestGetCurrencyFormat()voidtestGetCurrencyFormatWithCurrencyWithFractionAndSymbol()voidtestGetCurrencyFormatWithCurrencyWithoutFractionSymbol()voidtestGetCurrencyFormatWithLocale()voidtestGetDateTimeFormat()voidtestGetDateTimeFormatWithLocale()voidtestGetIntegerFormat()voidtestGetIntegerFormatWithLocale()voidtestGetNumberFormat()voidtestGetNumberFormatWithLocale()voidtestGetPercentFormat()voidtestGetPercentFormatWithLocale()voidtestGetTimeFormat()voidtestGetTimeFormatInvalid()voidtestGetTimeFormatWithLocale()voidtestSimpleDateFormat()Example of useFormatFactoryto apply pattern toDateFormat.voidtestSimpleDateFormatWithLocale()
-
-
-
Method Detail
-
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 useFormatFactoryto apply pattern toDateFormat.
-
testSimpleDateFormatWithLocale
public void testSimpleDateFormatWithLocale()
-
shouldCreateSimpleDateFormatObjectOfGivenFormatForCurrentLocale
public void shouldCreateSimpleDateFormatObjectOfGivenFormatForCurrentLocale()
-
shouldThrowNullPointerExceptionWhenCreateSimpleDateFormatAndFormatIsNull
public void shouldThrowNullPointerExceptionWhenCreateSimpleDateFormatAndFormatIsNull()
-
-