Class CurrencyTest

java.lang.Object
test.CurrencyTest

public class CurrencyTest extends Object
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:

See Also:
  • 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.