Fixed test to take into account Java escape characters.

This commit is contained in:
Olga Maciaszek-Sharma
2016-02-23 14:52:40 +01:00
parent b04e3b7714
commit fcbcd9e50f

View File

@@ -483,7 +483,7 @@ class JsonToJsonPathsConverterSpec extends Specification {
JsonPaths pathAndValues = JsonToJsonPathsConverter.transformToJsonPathWithTestsSideValues(json)
then:
pathAndValues.find {
it.method()== """.field("property2").matches("\\d+")""" &&
it.method()== """.field("property2").matches("\\\\d+")""" &&
it.jsonPath() == """\$[?(@.property2 =~ /\\d+/)]"""
}
and: