import static org.junit.Assert.assertEquals; import org.junit.Test; public class CurrencyConverterTest { @Test public void TestDollarToEuro(){ CurrencyConverter currencyConverter = new CurrencyConverter(); double dollars = 5; String expected = "4.70"; String actual = currencyConverter.dollarToEuro(5); assertEquals(expected, actual); } @Test public void TestEuroToDollar(){ CurrencyConverter currencyConverter = new CurrencyConverter(); double euros = 5; String expected = "5.32"; String actual = currencyConverter.euroToDollar(5); assertEquals(expected, actual); } @Test public void TestEuroToPound(){ CurrencyConverter currencyConverter = new CurrencyConverter(); double euros = 5; String expected = "4.10"; String actual = currencyConverter.euroToPound(5); assertEquals(expected, actual); } @Test public void TestPoundToRupee(){ CurrencyConverter currencyConverter = new CurrencyConverter(); double pounds = 5; String expected = "341.60"; String actual = currencyConverter.poundToRupee(5); assertEquals(expected, actual); } @Test public void TestRupeeToCanadian(){ CurrencyConverter currencyConverter = new CurrencyConverter(); double rupess = 500; String expected = "9.75"; String actual = currencyConverter.rupeeToCanadian(500); assertEquals(expected, actual); } @Test public void TestCanadianToSingapore(){ CurrencyConverter currencyConverter = new CurrencyConverter(); double cds = 5; String expected = "7.15"; String actual = currencyConverter.canadianToSingapore(5); assertEquals(expected, actual); } @Test public void TestSingaporeToSwiss(){ CurrencyConverter currencyConverter = new CurrencyConverter(); double singapore = 5; String expected = "5.05"; String actual = currencyConverter.singaporeToSwiss(5); assertEquals(expected, actual); } @Test public void TestSwissToRinggit(){ CurrencyConverter currencyConverter = new CurrencyConverter(); double swiss = 5; String expected = "22.35"; String actual = currencyConverter.swissToRinggit(5); assertEquals(expected, actual); } @Test public void TestRinggitToYen(){ CurrencyConverter currencyConverter = new CurrencyConverter(); double ringgit = 5; String expected = "579.20"; String actual = currencyConverter.ringgitToYen(5); assertEquals(expected, actual); } @Test public void TestYenToYuan(){ CurrencyConverter currencyConverter = new CurrencyConverter(); double yen = 500; String expected = "29.50"; String actual = currencyConverter.yenToYuan(500); assertEquals(expected, actual); } }