From 6304f2036f0eab9b58c60ce954541ab7e4423f9d Mon Sep 17 00:00:00 2001 From: pivovarit Date: Sat, 3 Dec 2016 11:08:14 +0100 Subject: [PATCH] Fix AsyncEchoClient --- .../com/baeldung/java/nio2/async/AsyncEchoTest.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core-java/src/test/java/com/baeldung/java/nio2/async/AsyncEchoTest.java b/core-java/src/test/java/com/baeldung/java/nio2/async/AsyncEchoTest.java index 7ac388fb09..93cb3e1eb6 100644 --- a/core-java/src/test/java/com/baeldung/java/nio2/async/AsyncEchoTest.java +++ b/core-java/src/test/java/com/baeldung/java/nio2/async/AsyncEchoTest.java @@ -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);