Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
ManfredKarrer committed Sep 27, 2018
1 parent dbe0993 commit 29193ad
Showing 1 changed file with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,8 @@

import org.junit.Test;

import static org.hamcrest.CoreMatchers.containsString;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;



Expand All @@ -52,11 +50,7 @@ public void test() {
assertTrue(validator.validate("Lg3PX8wRWmApFCoCMAsPF5P9dPHYQHEWKW").isValid);

validator.setCurrencyCode("BOGUS");
try {
validator.validate("1BOGUSADDR");
fail("expected validation to fail for unregistered asset 'BOGUS'");
} catch (IllegalArgumentException ex) {
assertThat(ex.getMessage(), containsString("'BOGUS' is not a registered asset"));
}

assertFalse(validator.validate("1BOGUSADDR").isValid);
}
}

0 comments on commit 29193ad

Please sign in to comment.