[TEST] fix epected error message
This commit is contained in:
parent
7c6869d875
commit
802b7b88fa
|
@ -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\""));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue