Skip to content

Commit

Permalink
#37 : more mock async tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vankeisb committed Jan 18, 2016
1 parent 10e7628 commit 7e2d164
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand All @@ -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);
Expand All @@ -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;
Expand Down

0 comments on commit 7e2d164

Please sign in to comment.