You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
548 B
24 lines
548 B
11 years ago
|
package com.jayway.jsonpath;
|
||
|
|
||
|
import org.junit.Test;
|
||
|
|
||
|
import static org.assertj.core.api.Assertions.assertThat;
|
||
|
|
||
|
public class EscapeTest extends BaseTest {
|
||
|
|
||
|
@Test
|
||
|
public void urls_are_not_escaped() {
|
||
|
|
||
|
String json = "[" +
|
||
|
"\"https://a/b/1\"," +
|
||
|
"\"https://a/b/2\"," +
|
||
|
"\"https://a/b/3\"" +
|
||
|
"]";
|
||
|
|
||
|
String resAsString = JsonPath.using(JSON_SMART_CONFIGURATION).parse(json).read("$").toString();
|
||
|
|
||
|
assertThat(resAsString).contains("https://a/b/1");
|
||
|
|
||
|
}
|
||
|
}
|