fixed failed tests

This commit is contained in:
Keith Donald
2008-07-10 10:46:46 +00:00
parent d05d4446ec
commit 7000af35c4
2 changed files with 0 additions and 18 deletions

View File

@@ -14,8 +14,6 @@ public class BookingFlowExecutionTests extends AbstractXmlFlowExecutionTests {
private BookingService bookingService;
private boolean persistCalled;
protected void setUp() {
bookingService = EasyMock.createMock(BookingService.class);
}
@@ -66,16 +64,9 @@ public class BookingFlowExecutionTests extends AbstractXmlFlowExecutionTests {
public void testReviewBooking_Confirm() {
setCurrentState("reviewBooking");
getFlowScope().put("booking", createTestBooking());
getFlowScope().put("persistenceContext", new Object() {
public void persist(Booking booking) {
persistCalled = true;
}
});
MockExternalContext context = new MockExternalContext();
context.setEventId("confirm");
resumeFlow(context);
assertTrue(persistCalled);
assertFlowExecutionEnded();
assertFlowExecutionOutcomeEquals("bookingConfirmed");
}

View File

@@ -13,8 +13,6 @@ public class BookingFlowExecutionTests extends AbstractXmlFlowExecutionTests {
private BookingService bookingService;
private boolean persistCalled;
protected void setUp() {
bookingService = EasyMock.createMock(BookingService.class);
}
@@ -64,16 +62,9 @@ public class BookingFlowExecutionTests extends AbstractXmlFlowExecutionTests {
public void testReviewBooking_Confirm() {
setCurrentState("reviewBooking");
getFlowScope().put("booking", createTestBooking());
getFlowScope().put("persistenceContext", new Object() {
public void persist(Booking booking) {
persistCalled = true;
}
});
MockExternalContext context = new MockExternalContext();
context.setEventId("confirm");
resumeFlow(context);
assertTrue(persistCalled);
assertFlowExecutionEnded();
assertFlowExecutionOutcomeEquals("bookingConfirmed");
}