diff --git a/stripes/src/test/java/net/sourceforge/stripes/mock/TestMockAsync.java b/stripes/src/test/java/net/sourceforge/stripes/mock/TestMockAsync.java index ed278e5da..5339b011e 100644 --- a/stripes/src/test/java/net/sourceforge/stripes/mock/TestMockAsync.java +++ b/stripes/src/test/java/net/sourceforge/stripes/mock/TestMockAsync.java @@ -37,6 +37,7 @@ public void testTimeout() throws Exception { trip.execute("doAsyncTimeout"); } catch(Exception e) { caught = true; + e.printStackTrace(); } assertTrue(caught); AsyncActionBean bean = trip.getActionBean(AsyncActionBean.class); @@ -53,6 +54,7 @@ public void testRegularException() throws Exception { MockRoundtrip trip = new MockRoundtrip(getMockServletContext(), AsyncActionBean.class); trip.execute("doRegularException"); } catch(Exception e) { + e.printStackTrace(); caught = true; } assertTrue(caught); @@ -65,6 +67,7 @@ public void testAsyncException() throws Exception { MockRoundtrip trip = new MockRoundtrip(getMockServletContext(), AsyncActionBean.class); trip.execute("doAsyncException"); } catch(Exception e) { + e.printStackTrace(); caught = true; } assertTrue(caught); @@ -89,7 +92,6 @@ public Resolution doAsync() { return new AsyncResolution() { @Override protected void executeAsync() throws Exception { - Thread.sleep(5000); System.out.println("Not Really Async..."); getResponse().getWriter().write("DONE"); completed = true;