Class CurrencyTests
- java.lang.Object
-
- de.powerstat.validation.values.test.CurrencyTests
-
public class CurrencyTests extends Object
Currency tests.
-
-
Constructor Summary
Constructors Constructor Description CurrencyTests()
Default constructor.
-
Method Summary
Modifier and Type Method Description void
ccurrencyIllegalParameters(String code)
Test Currency with illegal parameters.void
currencyLength(String code)
Test Currency with currency codes to short or long.void
currencyOk0(String code)
Test Currency with valid currency codes.void
getCurrency()
Test get currency code.void
testCompareTo()
Test compareTo.void
testEquals()
Test equals.void
testHashCode()
Test hash code.void
testToString()
Test toString.
-
-
-
Method Detail
-
currencyOk0
@ParameterizedTest @ValueSource(strings="EUR") public void currencyOk0(String code)
Test Currency with valid currency codes.- Parameters:
code
- ISO 4217 code
-
currencyLength
@ParameterizedTest @ValueSource(strings={"EU","EURO"}) public void currencyLength(String code)
Test Currency with currency codes to short or long.- Parameters:
code
- ISO 4217 codes
-
ccurrencyIllegalParameters
@ParameterizedTest @ValueSource(strings={"EU~","ZZZ"}) public void ccurrencyIllegalParameters(String code)
Test Currency with illegal parameters.- Parameters:
code
- ISO 4217 code
-
getCurrency
@Test public void getCurrency()
Test get currency code.
-
testHashCode
@Test public void testHashCode()
Test hash code.
-
testEquals
@Test public void testEquals()
Test equals.
-
testToString
@Test public void testToString()
Test toString.
-
testCompareTo
@Test public void testCompareTo()
Test compareTo.
-
-