We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d6c0e7 commit 726b284Copy full SHA for 726b284
src/test/java/com/github/fge/jackson/JsonNodeReaderTest.java
@@ -51,7 +51,8 @@ public void streamIsClosedOnRead()
51
throws IOException
52
{
53
final Supplier<InputStream> supplier = provideInputStream("[]");
54
- final InputStream in = spy(supplier.get());
+ InputStream inOriginal = supplier.get();
55
+ final InputStream in = spy(inOriginal);
56
final JsonNode node = new JsonNodeReader().fromInputStream(in);
57
verify(in).close();
58
assertEquals(node, new ObjectMapper().readTree(supplier.get()));
0 commit comments