Skip to content

Commit 6304f20

Browse files
committed
Fix AsyncEchoClient
1 parent 1b63b9b commit 6304f20

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎core-java/src/test/java/com/baeldung/java/nio2/async/AsyncEchoTest.java‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
package com.baeldung.java.nio2.async;
22

3-
import static org.junit.Assert.*;
4-
5-
import java.io.IOException;
6-
73
import org.junit.After;
84
import org.junit.Before;
95
import org.junit.Test;
106

7+
import java.io.IOException;
8+
9+
import static org.junit.Assert.assertEquals;
10+
1111
public class AsyncEchoTest {
1212

1313
Process server;
@@ -20,7 +20,7 @@ public void setup() throws IOException, InterruptedException {
2020
}
2121

2222
@Test
23-
public void givenServerClient_whenServerEchosMessage_thenCorrect() {
23+
public void givenServerClient_whenServerEchosMessage_thenCorrect() throws Exception {
2424
String resp1 = client.sendMessage("hello");
2525
String resp2 = client.sendMessage("world");
2626
assertEquals("hello", resp1);

0 commit comments

Comments
 (0)