Added ModuleException class.

This commit is contained in:
Erik C. Thauvin 2019-04-07 15:40:13 -07:00
parent 03b932d502
commit e3e11c7998
3 changed files with 91 additions and 10 deletions

View file

@ -49,7 +49,7 @@ public class CurrencyConvertTest {
}
@Test
public void testConvertCurrency() {
public void testConvertCurrency() throws ModuleException {
assertThat(CurrencyConverter.converyCurrency("100 USD to EUR").getMessage())
.as("100 USD to EUR").startsWith("100.00 USD = ");
assertThat(CurrencyConverter.converyCurrency("100 BLA to USD").isError())