Skip to content

Commit

Permalink
test added for java conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenp committed May 25, 2015
1 parent 0b03522 commit fc6fd3e
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,14 @@ public void givenUsingPlainJava_whenConvertingByteArrayIntoReader_thenCorrect()
targetReader.close();
}

@Test
public void givenUsingPlainJava2_whenConvertingByteArrayIntoReader_thenCorrect() throws IOException {
final byte[] initialArray = "Hello world!".getBytes();
final Reader targetReader = new InputStreamReader(new ByteArrayInputStream(initialArray));

targetReader.close();
}

@Test
public void givenUsingGuava_whenConvertingByteArrayIntoReader_thenCorrect() throws IOException {
final byte[] initialArray = "With Guava".getBytes();
Expand Down

0 comments on commit fc6fd3e

Please sign in to comment.