Fix AsyncEchoClient
This commit is contained in:
parent
1b63b9bf35
commit
6304f2036f
@ -1,13 +1,13 @@
|
|||||||
package com.baeldung.java.nio2.async;
|
package com.baeldung.java.nio2.async;
|
||||||
|
|
||||||
import static org.junit.Assert.*;
|
|
||||||
|
|
||||||
import java.io.IOException;
|
|
||||||
|
|
||||||
import org.junit.After;
|
import org.junit.After;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
|
||||||
|
import static org.junit.Assert.assertEquals;
|
||||||
|
|
||||||
public class AsyncEchoTest {
|
public class AsyncEchoTest {
|
||||||
|
|
||||||
Process server;
|
Process server;
|
||||||
@ -20,7 +20,7 @@ public class AsyncEchoTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void givenServerClient_whenServerEchosMessage_thenCorrect() {
|
public void givenServerClient_whenServerEchosMessage_thenCorrect() throws Exception {
|
||||||
String resp1 = client.sendMessage("hello");
|
String resp1 = client.sendMessage("hello");
|
||||||
String resp2 = client.sendMessage("world");
|
String resp2 = client.sendMessage("world");
|
||||||
assertEquals("hello", resp1);
|
assertEquals("hello", resp1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user