Package org.jboss.shrinkwrap.api

Examples of org.jboss.shrinkwrap.api.BeanArchive.addPackage()


    @Deployment
    public static Archive<?> deploy() {
        WebArchive web = ShrinkWrap.create(WebArchive.class).addPackage(SplitInterceptorsTest.class.getPackage());

        BeanArchive fst = ShrinkWrap.create(BeanArchive.class).intercept(TxInterceptor.class);
        fst.addPackage(TDAO.class.getPackage());
        web.addAsLibrary(fst);

        JavaArchive snd = ShrinkWrap.create(JavaArchive.class).addAsManifestResource(new BeansXml().interceptors(TxInterceptor.class), ArchivePaths.create("beans.xml"));
        snd.addPackage(CDAO.class.getPackage());
        web.addAsLibrary(snd);
View Full Code Here


    @Deployment
    @ShouldThrowException(DeploymentException.class)
    public static JavaArchive deploy() {
        BeanArchive archive = ShrinkWrap.create(BeanArchive.class);
        archive.addPackage(UnproxyableTest.class.getPackage());
        return archive;
    }

    @Test
    public void test() {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.