Package org.jboss.as.quickstarts.cdi.service

Examples of org.jboss.as.quickstarts.cdi.service.Item


    @EJB
    private ItemServiceBean itemService;

    @Test
    public void testAuditInterceptor() {
        Item item = new Item();
        item.setName("testItem");
        itemService.create(item);
        item = itemService.getList().get(0);
        // assert that no history entries were added since interceptors are disabled
        assertEquals(0, History.getItemHistory().size());
    }
View Full Code Here


    @EJB
    private ItemServiceBean itemService;

    @Test
    public void testAuditInterceptor() {
        Item item = new Item();
        item.setName("testItem");
        itemService.create(item);
        item = itemService.getList().get(0);
        // assert that 2 entries were added to history.
        assertEquals(2, History.getItemHistory().size());
    }
View Full Code Here

TOP

Related Classes of org.jboss.as.quickstarts.cdi.service.Item

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.