diff --git a/src/test/java/io/bonsai/plugins/synonyms/RestTests.java b/src/test/java/io/bonsai/plugins/synonyms/RestTests.java index 90bb903..03f1f8d 100644 --- a/src/test/java/io/bonsai/plugins/synonyms/RestTests.java +++ b/src/test/java/io/bonsai/plugins/synonyms/RestTests.java @@ -62,8 +62,7 @@ public void testInvalidSynonyms() throws IOException { .body(getResourceStr("files/invalid_synonyms.json")) .execute()) { Assert.assertEquals(422, curlResponse.getHttpStatusCode()); - Assert.assertTrue( - curlResponse.getContentAsString().contains("Invalid synonym rule at line 1")); + Assert.assertTrue(curlResponse.getContentAsString().contains("No rules accepted")); } } } diff --git a/src/test/resources/files/invalid_synonyms.json b/src/test/resources/files/invalid_synonyms.json index f3b9490..bc476c7 100644 --- a/src/test/resources/files/invalid_synonyms.json +++ b/src/test/resources/files/invalid_synonyms.json @@ -1,6 +1,6 @@ { "name": "test", "rules": [ - "fancy,],pants,[" + ",=>,....,,,,,," ] }