mirror of
https://github.com/stleary/JSON-java.git
synced 2025-08-05 12:25:36 -04:00
one more test for null-check in Builder#append(String)
This commit is contained in:
parent
6edc093803
commit
2eed4be5fc
@ -115,6 +115,11 @@ public class JSONPointerTest {
|
|||||||
assertEquals("val", pointer.queryFrom(document));
|
assertEquals("val", pointer.queryFrom(document));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test(expected = NullPointerException.class)
|
||||||
|
public void nullToken() {
|
||||||
|
JSONPointer.builder().append(null);
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void toStringEscaping() {
|
public void toStringEscaping() {
|
||||||
JSONPointer pointer = JSONPointer.builder()
|
JSONPointer pointer = JSONPointer.builder()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user