[TEST] fix epected error message

This commit is contained in:
Britta Weber 2015-05-26 11:49:33 +02:00
parent 7c6869d875
commit 802b7b88fa
1 changed files with 2 additions and 2 deletions

View File

@ -251,7 +251,7 @@ public class AnalysisModuleTests extends ElasticsearchTestCase {
fail("This should fail with IllegalArgumentException because the analyzers name starts with _"); fail("This should fail with IllegalArgumentException because the analyzers name starts with _");
} catch (ProvisionException e) { } catch (ProvisionException e) {
assertTrue(e.getCause() instanceof IllegalArgumentException); 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\""));
} }
} }
@ -268,7 +268,7 @@ public class AnalysisModuleTests extends ElasticsearchTestCase {
fail("This should fail with IllegalArgumentException because the analyzers alias starts with _"); fail("This should fail with IllegalArgumentException because the analyzers alias starts with _");
} catch (ProvisionException e) { } catch (ProvisionException e) {
assertTrue(e.getCause() instanceof IllegalArgumentException); 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\""));
} }
} }
} }