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 7c6869d commit 802b7b8
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -251,7 +251,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 @@ -268,7 +268,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 802b7b8

Please sign in to comment.