Fix AsyncEchoClient

This commit is contained in:
pivovarit 2016-12-03 11:08:14 +01:00
parent 1b63b9bf35
commit 6304f2036f
1 changed files with 5 additions and 5 deletions

View File

@ -1,13 +1,13 @@
package com.baeldung.java.nio2.async;
import static org.junit.Assert.*;
import java.io.IOException;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.io.IOException;
import static org.junit.Assert.assertEquals;
public class AsyncEchoTest {
Process server;
@ -20,7 +20,7 @@ public class AsyncEchoTest {
}
@Test
public void givenServerClient_whenServerEchosMessage_thenCorrect() {
public void givenServerClient_whenServerEchosMessage_thenCorrect() throws Exception {
String resp1 = client.sendMessage("hello");
String resp2 = client.sendMessage("world");
assertEquals("hello", resp1);