Code cleanups.

This commit is contained in:
Simone Bordet 2016-07-15 18:09:44 +02:00
parent a3b5e7ebb7
commit a38e819907
1 changed files with 51 additions and 54 deletions

View File

@ -102,7 +102,6 @@ public class AsyncIOServletTest
throw new IllegalStateException();
}
scope.set(new Throwable());
}
@Override
public void exitScope(Context context, Request request)
@ -116,8 +115,6 @@ public class AsyncIOServletTest
server.start();
}
private static void assertScope()
{
if (scope.get()==null)
@ -216,7 +213,7 @@ public class AsyncIOServletTest
}
line=in.readLine();
Assert.assertTrue(latch.await(5, TimeUnit.SECONDS));
assertTrue(latch.await(5, TimeUnit.SECONDS));
}
}
@ -414,7 +411,7 @@ public class AsyncIOServletTest
SimpleHttpParser parser = new SimpleHttpParser();
SimpleHttpResponse response = parser.readResponse(new BufferedReader(new InputStreamReader(client.getInputStream(), "UTF-8")));
Assert.assertTrue(latch.await(5, TimeUnit.SECONDS));
assertTrue(latch.await(5, TimeUnit.SECONDS));
Assert.assertEquals("500", response.getCode());
}
}