Test fixes.

This commit is contained in:
Simone Bordet 2012-03-15 12:12:22 +01:00
parent f2400e5f78
commit 13f0ae732d
1 changed files with 12 additions and 19 deletions

View File

@ -13,28 +13,19 @@
package org.eclipse.jetty.server;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.io.IOException;
import java.io.InputStream;
import java.util.concurrent.atomic.AtomicInteger;
import javax.servlet.AsyncContext;
import javax.servlet.AsyncEvent;
import javax.servlet.AsyncListener;
import javax.servlet.DispatcherType;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.eclipse.jetty.continuation.Continuation;
import org.eclipse.jetty.continuation.ContinuationListener;
import org.eclipse.jetty.server.handler.HandlerWrapper;
import org.eclipse.jetty.server.session.SessionHandler;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
public class LocalAsyncContextTest
{
protected Server _server = new Server();
@ -112,6 +103,7 @@ public class LocalAsyncContextTest
_handler.setResumeAfter(100);
_handler.setCompleteAfter(-1);
response=process("wibble");
check(response,"DISPATCHED");
_handler.setResumeAfter(-1);
@ -147,6 +139,7 @@ public class LocalAsyncContextTest
check(response,"COMPLETED");
}
@Test
public void testTwoCycles() throws Exception
{
String response;