diff --git a/com.reprezen.swagedit.tests/src/com/reprezen/swagedit/tests/ValidationMessageTest.xtend b/com.reprezen.swagedit.tests/src/com/reprezen/swagedit/tests/ValidationMessageTest.xtend index 9bb07fa4..a45fabe7 100644 --- a/com.reprezen.swagedit.tests/src/com/reprezen/swagedit/tests/ValidationMessageTest.xtend +++ b/com.reprezen.swagedit.tests/src/com/reprezen/swagedit/tests/ValidationMessageTest.xtend @@ -22,7 +22,7 @@ class ValidationMessageTest { @Test def testMessage_additionalItems_notAllowed() { - var expected = "instance type (integer) does not match any allowed primitive type (allowed: [\"array\"])" + var expected = 'instance type (integer) does not match any allowed primitive type (allowed: ["array"])' // parameters should contain an array of object val content = ''' swagger: '2.0' @@ -43,7 +43,7 @@ class ValidationMessageTest { @Test def testMessage_typeNoMatch() { - var expected = "instance type (integer) does not match any allowed primitive type (allowed: [\"object\"])" + var expected = 'instance type (integer) does not match any allowed primitive type (allowed: ["object"])' // responses should contain an object val content = ''' swagger: '2.0' @@ -61,7 +61,7 @@ class ValidationMessageTest { @Test def testMessage_notInEnum() { - val expected = "instance value (\"foo\") not found in enum (possible values: [\"http\",\"https\",\"ws\",\"wss\"])" + val expected = 'instance value ("foo") not found in enum (possible values: ["http","https","ws","wss"])' val content = ''' swagger: '2.0' info: @@ -83,7 +83,7 @@ class ValidationMessageTest { @Test def testMessage_oneOf_fail() { - val expected = "instance failed to match exactly one schema (matched 0 out of 2)" + val expected = 'instance failed to match exactly one schema (matched 0 out of 2)' val content = ''' swagger: '2.0' info: @@ -102,7 +102,7 @@ class ValidationMessageTest { @Test def testMessage_additionalProperties_notAllowed() { - val expected = "object instance has properties which are not allowed by the schema: [\"description\"]" + val expected = 'object instance has properties which are not allowed by the schema: ["description"]' // description should be 2 spaces forward val content = ''' swagger: '2.0'