diff --git a/spring-webflow-samples/booking-faces/src/test/java/org/springframework/webflow/samples/booking/BookingFlowExecutionTests.java b/spring-webflow-samples/booking-faces/src/test/java/org/springframework/webflow/samples/booking/BookingFlowExecutionTests.java index be17c885..b617b2c2 100644 --- a/spring-webflow-samples/booking-faces/src/test/java/org/springframework/webflow/samples/booking/BookingFlowExecutionTests.java +++ b/spring-webflow-samples/booking-faces/src/test/java/org/springframework/webflow/samples/booking/BookingFlowExecutionTests.java @@ -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"); } diff --git a/spring-webflow-samples/booking-mvc/src/test/java/org/springframework/webflow/samples/booking/BookingFlowExecutionTests.java b/spring-webflow-samples/booking-mvc/src/test/java/org/springframework/webflow/samples/booking/BookingFlowExecutionTests.java index 6e8c56de..342c47fb 100644 --- a/spring-webflow-samples/booking-mvc/src/test/java/org/springframework/webflow/samples/booking/BookingFlowExecutionTests.java +++ b/spring-webflow-samples/booking-mvc/src/test/java/org/springframework/webflow/samples/booking/BookingFlowExecutionTests.java @@ -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"); }