Class CurrencyTest
java.lang.Object
test.CurrencyTest
Provides test cases for the
Currency
enum.
Tests methods for converting amounts to and from Euro and for finding a Currency
by its display string
.
Contains the following test cases:
testConvertToDisplayString()
- Tests the generation of the display stringtestFromDisplayString()
- Tests finding a currency by its display stringtestConvertToEuro()
- Tests conversion of amounts to EurotestConvertFromEuro()
- Tests conversion of amounts from EurotestInvalidDisplayString()
- Tests handling of invalid display strings
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Tests the conversion of amounts from Euro.void
Tests the generation of the display string.void
Tests the conversion of amounts to Euro.void
Tests finding a currency by its display string.void
Tests handling of invalid display strings.
-
Constructor Details
-
CurrencyTest
public CurrencyTest()
-
-
Method Details
-
testConvertToDisplayString
@Test public void testConvertToDisplayString()Tests the generation of the display string. -
testFromDisplayString
@Test public void testFromDisplayString()Tests finding a currency by its display string. -
testConvertToEuro
@Test public void testConvertToEuro()Tests the conversion of amounts to Euro. -
testConvertFromEuro
@Test public void testConvertFromEuro()Tests the conversion of amounts from Euro. -
testInvalidDisplayString
@Test public void testInvalidDisplayString()Tests handling of invalid display strings.
-