Skip to content

Commit 1e75235

Browse files
committed
minor test improvement
1 parent 5742c62 commit 1e75235

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

properties/src/test/java/com/fasterxml/jackson/dataformat/javaprop/SimpleStreamingTest.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@ public void testParsing() throws Exception
3838
p.close();
3939
assertTrue(p.isClosed());
4040

41+
// and then some other accessors
42+
p = MAPPER.createParser("foo = bar");
43+
assertToken(JsonToken.START_OBJECT, p.nextToken());
44+
assertEquals("foo", p.nextFieldName());
45+
assertEquals("bar", p.nextTextValue());
46+
assertNull(p.nextFieldName());
47+
p.close();
48+
4149
// one more thing, verify handling of non-binary
4250
p = MAPPER.createParser("foo = bar");
4351
assertToken(JsonToken.START_OBJECT, p.nextToken());

0 commit comments

Comments
 (0)