Skip to content

Commit 10d8fc1

Browse files
committed
Use existing string resource for unit test.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1301976 13f79535-47bb-0310-9956-ffa450edef68
1 parent 2697108 commit 10d8fc1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/test/java/org/apache/commons/codec/binary/Base64InputStreamTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public void testCodec130() throws IOException {
6262
ByteArrayOutputStream bos = new ByteArrayOutputStream();
6363
Base64OutputStream base64os = new Base64OutputStream(bos);
6464

65-
base64os.write("Hello World!".getBytes());
65+
base64os.write(STRING_FIXTURE.getBytes());
6666

6767
ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
6868
Base64InputStream ins = new Base64InputStream(bis);
@@ -78,7 +78,7 @@ public void testCodec130() throws IOException {
7878
}
7979
String str = sb.toString();
8080

81-
assertEquals("ello World!", str);
81+
assertEquals(STRING_FIXTURE.substring(1), str);
8282
}
8383

8484
/**

0 commit comments

Comments
 (0)