Skip to content

Commit

Permalink
wealthfront#10 Fix test to ignore param type ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Conaway committed Jan 29, 2016
1 parent 11d445d commit cba54d0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

import static com.kaching.platform.converters.InstantiatorErrors.noSuchField;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;

import java.util.List;
Expand Down Expand Up @@ -95,8 +96,7 @@ public void addinTwiceTheSameMessageDoesNotDuplicateTheError() {
@Test
public void cannotSpecifyDefaultValueAndConstant() throws Exception {
check(
"cannot specify both a default constant and a default value " +
"@Optional(constant=FOO, value=4)",
"cannot specify both a default constant and a default value ",
InstantiatorErrors.cannotSpecifyDefaultValueAndConstant(
new Errors(), inspectMeCannotSpecifyDefaultValueAndConstant(8)));
}
Expand All @@ -122,7 +122,7 @@ private void check(String expected, Errors errors) {
errors.throwIfHasErrors();
fail();
} catch (RuntimeException e) {
assertEquals("1) " + expected, e.getMessage());
assertTrue(e.getMessage(), e.getMessage().startsWith("1) " + expected));
}
}

Expand Down

0 comments on commit cba54d0

Please sign in to comment.