Skip to content

Commit a76d8a4

Browse files
committed
fix method names
1 parent a2eeac4 commit a76d8a4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

core-java-modules/core-java-9/src/test/java/com/baeldung/java9/inputstream/outputstream/InputStreamToOutputStreamUnitTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ private static void copy(InputStream source, OutputStream target) throws IOExcep
2929
}
3030

3131
@Test
32-
public final void givenUsingJavaEight_whenConvertingStringToInputStream_thenCorrect() throws IOException {
32+
public final void givenUsingJavaEight_whenCopyingInputStreamToOutputStream_thenCorrect() throws IOException {
3333
final String initialString = "Hello World!";
3434

3535
try (InputStream inputStream = new ByteArrayInputStream(initialString.getBytes());
@@ -40,7 +40,7 @@ public final void givenUsingJavaEight_whenConvertingStringToInputStream_thenCorr
4040
}
4141

4242
@Test
43-
public final void givenUsingJavaEight_whenConvertingVeryLongStringToInputStream_thenCorrect() throws IOException {
43+
public final void givenUsingJavaEight_whenCopyingLongInputStreamToOutputStream_thenCorrect() throws IOException {
4444
final String initialString = randomAlphabetic(20480);
4545

4646
try (InputStream inputStream = new ByteArrayInputStream(initialString.getBytes());
@@ -51,7 +51,7 @@ public final void givenUsingJavaEight_whenConvertingVeryLongStringToInputStream_
5151
}
5252

5353
@Test
54-
public final void givenUsingJavaNine_whenConvertingStringToInputStream_thenCorrect() throws IOException {
54+
public final void givenUsingJavaNine_whenCopyingInputStreamToOutputStream_thenCorrect() throws IOException {
5555
final String initialString = "Hello World!";
5656

5757
try (InputStream inputStream = new ByteArrayInputStream(initialString.getBytes());
@@ -62,7 +62,7 @@ public final void givenUsingJavaNine_whenConvertingStringToInputStream_thenCorre
6262
}
6363

6464
@Test
65-
public final void givenUsingGuava_whenConvertingStringToInputStream_thenCorrect() throws IOException {
65+
public final void givenUsingGuava_whenCopyingInputStreamToOutputStream_thenCorrect() throws IOException {
6666
final String initialString = "Hello World!";
6767

6868
try (InputStream inputStream = new ByteArrayInputStream(initialString.getBytes());
@@ -73,7 +73,7 @@ public final void givenUsingGuava_whenConvertingStringToInputStream_thenCorrect(
7373
}
7474

7575
@Test
76-
public final void givenUsingCommonsIO_whenConvertingStringToInputStream_thenCorrect() throws IOException {
76+
public final void givenUsingCommonsIO_whenCopyingInputStreamToOutputStream_thenCorrect() throws IOException {
7777
final String initialString = "Hello World!";
7878

7979
try (InputStream inputStream = new ByteArrayInputStream(initialString.getBytes());

0 commit comments

Comments
 (0)