mirror of
https://github.com/stleary/JSON-java.git
synced 2025-08-03 11:25:30 -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));
|
||||
}
|
||||
|
||||
@Test(expected = NullPointerException.class)
|
||||
public void nullToken() {
|
||||
JSONPointer.builder().append(null);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void toStringEscaping() {
|
||||
JSONPointer pointer = JSONPointer.builder()
|
||||
|
Loading…
x
Reference in New Issue
Block a user