Skip to content

Commit

Permalink
Test using an intermediate.
Browse files Browse the repository at this point in the history
  • Loading branch information
Capstan committed Sep 20, 2019
1 parent 1d6c0e7 commit 726b284
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/java/com/github/fge/jackson/JsonNodeReaderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ public void streamIsClosedOnRead()
throws IOException
{
final Supplier<InputStream> supplier = provideInputStream("[]");
final InputStream in = spy(supplier.get());
InputStream inOriginal = supplier.get();
final InputStream in = spy(inOriginal);
final JsonNode node = new JsonNodeReader().fromInputStream(in);
verify(in).close();
assertEquals(node, new ObjectMapper().readTree(supplier.get()));
Expand Down

0 comments on commit 726b284

Please sign in to comment.