test added for java conversion

This commit is contained in:
eugenp 2015-05-25 13:56:22 +01:00
parent 0b03522131
commit fc6fd3e0a1
1 changed files with 8 additions and 0 deletions

View File

@ -60,6 +60,14 @@ public class JavaXToReaderUnitTest {
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();