Package org.apache.openejb.assembler.classic

Examples of org.apache.openejb.assembler.classic.Assembler.destroy()


        assertFalse("in role contributor", foo.isCallerInRole("contributor"));
        assertFalse("in role guest", foo.isCallerInRole("guest"));
        assertTrue("not in role public", foo.isCallerInRole("public"));
       
        ctx.close();
        assembler.destroy();
    }

    @Stateless
    @DeclareRoles({"committer", "contributor","community","guest","public"})
    public static class FooBean implements Project {
View Full Code Here


        final Assembler assembler = SystemInstance.get().getComponent(Assembler.class);

        ThreadSingletonServiceImpl.exit(null);
        if (assembler != null) {
            assembler.destroy();
        }
        try {
            final File file = writeToFile(archive, name);
            final Map<String, Object> map = new HashMap<String, Object>();
            map.put(EJBContainer.MODULES, file);
View Full Code Here

        assertTrue("not in role committer", foo.isCallerInRole("committer"));
        assertTrue("not in role community", foo.isCallerInRole("community"));
        assertFalse("in role contributor", foo.isCallerInRole("contributor"));
       
        ctx.close();
        assembler.destroy();
       
//        Project bar = (Project) ctx.lookup("BarBeanLocal");
//
//        bar.svnCheckout("");
//
View Full Code Here

        assertFalse("in role community", foo.isCallerInRole("community"));
        assertFalse("in role contributor", foo.isCallerInRole("contributor"));
        assertTrue("not in role guest", foo.isCallerInRole("guest"));
       
        ctx.close();
        assembler.destroy();
    }
   
    // Just to be sure we can override the default user (ie. guest)
    public void testDefaultUser() throws Exception {
        Assembler assembler = configureAssembler("public");
View Full Code Here

        assertFalse("in role contributor", foo.isCallerInRole("contributor"));
        assertFalse("in role guest", foo.isCallerInRole("guest"));
        assertTrue("not in role public", foo.isCallerInRole("public"));
       
        ctx.close();
        assembler.destroy();
    }

    @Stateless
    @DeclareRoles({"committer", "contributor","community","guest","public"})
    public static class FooBean implements Project {
View Full Code Here


        assertTrue(HookLifecycle.start);
        assertFalse(HookLifecycle.stop);

        assembler.destroy();


        assertTrue(HookLifecycle.start);
        assertTrue(HookLifecycle.stop);
    }
View Full Code Here

        assertTrue("not in role community", foo.isCallerInRole("community"));
        assertFalse("in role contributor", foo.isCallerInRole("contributor"));
        assertTrue("Caller is not jonathan", foo.isCaller("jonathan"));

        ctx.close();
        assembler.destroy();

        //        Project bar = (Project) ctx.lookup("BarBeanLocal");
        //
        //        bar.svnCheckout("");
        //
View Full Code Here

        assertFalse("in role contributor", foo.isCallerInRole("contributor"));
        assertTrue("not in role guest", foo.isCallerInRole("guest"));
        assertTrue("Caller is not guest", foo.isCaller("guest"));

        ctx.close();
        assembler.destroy();
    }

    // Just to be sure we can override the default user (ie. guest)
    public void testDefaultUser() throws Exception {
        final Assembler assembler = configureAssembler("public");
View Full Code Here

        assertFalse("in role contributor", foo.isCallerInRole("contributor"));
        assertFalse("in role guest", foo.isCallerInRole("guest"));
        assertTrue("Caller is not public", foo.isCaller("public"));

        ctx.close();
        assembler.destroy();
    }

    @Stateless
    @DeclareRoles({"committer", "contributor", "community", "guest", "public"})
    public static class FooBean implements Project {
View Full Code Here

        assertTrue("not in role community", foo.isCallerInRole("community"));
        assertFalse("in role contributor", foo.isCallerInRole("contributor"));
        assertTrue("Caller is not jonathan", foo.isCaller("jonathan"));

        ctx.close();
        assembler.destroy();

        //        Project bar = (Project) ctx.lookup("BarBeanLocal");
        //
        //        bar.svnCheckout("");
        //
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.