コード例 #1
0
 @Before
 public void setUp() throws Exception {
   mockBuyerContext = new BuyerContext();
   mockPurchaseBooksInterceptor = mock(PurchaseBooksInterceptor.class);
   CheckpointManager.setJAXBSessionCache(getJAXBSessionCache());
   CheckpointManager.addConfiguration("bookshop2-buyer-service-checks.xml");
   super.setUp();
 }
コード例 #2
0
 @Before
 public void setUp() throws Exception {
   mockSupplierContext = new SupplierContext();
   mockReserveBooksHandler = mock(ReserveBooksHandler.class);
   CheckpointManager.setJAXBSessionCache(getJAXBSessionCache());
   CheckpointManager.addConfiguration("bookshop2-supplier-service-checks.xml");
   super.setUp();
 }
コード例 #3
0
 @Before
 public void setUp() throws Exception {
   mockEventLoggerContext = new EventLoggerContext();
   mockLogEventHandler = mock(LogEventHandler.class);
   CheckpointManager.setJAXBSessionCache(getJAXBSessionCache());
   CheckpointManager.addConfiguration("jee-migration-example-service-checks.xml");
   super.setUp();
 }