Java Reference
In-Depth Information
@Inject BoundConversationContext conversationContext;
@Before
public void init() {
conversationContext.associate(
new MutableBoundRequest(new HashMap<String,
Object>(),
new HashMap<String, Object>()));
conversationContext.activate();
}
@Deployment
public static Archive<?> createTestArchive() {
return ShrinkWrap.create(WebArchive.class,
"ticket.war")
.addPackage(SeatProducer.class.getPackage())
.addPackage(Seat.class.getPackage())
.addPackage(TicketService.class.getPackage())
.addPackage(DataManager.class.getPackage())
.addAsResource("META-INF/persistence.xml")
.addAsWebInfResource(EmptyAsset.INSTANCE,
"beans.xml");
}
@Inject
TicketService ticketService;
@Inject
BookerService bookerService;
@Inject
Logger log;
@Test
public void testTicketAgency () throws Exception {
SeatType seatType = new SeatType();
seatType.setDescription("Balcony");
Search WWH ::




Custom Search