Added ModuleException class.
This commit is contained in:
parent
03b932d502
commit
e3e11c7998
3 changed files with 91 additions and 10 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue