Skip to content

Commit

Permalink
[TEST] fix epected error message
Browse files Browse the repository at this point in the history
  • Loading branch information
brwe committed May 26, 2015
1 parent ad9f046 commit 8052ca3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ public void testUnderscoreInAnalyzerName() {
fail("This should fail with IllegalArgumentException because the analyzers name starts with _");
} catch (ProvisionException e) {
assertTrue(e.getCause() instanceof IllegalArgumentException);
assertThat(e.getCause().getMessage(), equalTo("analyzer name must not start with _. got \"_invalid_name\""));
assertThat(e.getCause().getMessage(), equalTo("analyzer name must not start with '_'. got \"_invalid_name\""));
}
}

Expand All @@ -261,7 +261,7 @@ public void testUnderscoreInAnalyzerNameAlias() {
fail("This should fail with IllegalArgumentException because the analyzers alias starts with _");
} catch (ProvisionException e) {
assertTrue(e.getCause() instanceof IllegalArgumentException);
assertThat(e.getCause().getMessage(), equalTo("analyzer name must not start with _. got \"_invalid_name\""));
assertThat(e.getCause().getMessage(), equalTo("analyzer name must not start with '_'. got \"_invalid_name\""));
}
}
}

0 comments on commit 8052ca3

Please sign in to comment.