Package org.apache.geronimo.kernel.osgi

Examples of org.apache.geronimo.kernel.osgi.MockBundle


    public void testEjbModuleImplGBean() {
        GBeanInfo.getGBeanInfo(EjbModuleImplGBean.class.getName(), new MockBundle(getClass().getClassLoader(), "test", 0L));
    }

    public void testEntityDeploymentGBean() {
        GBeanInfo.getGBeanInfo(EntityDeploymentGBean.class.getName(), new MockBundle(getClass().getClassLoader(), "test", 0L));
    }
View Full Code Here


    public void testEntityDeploymentGBean() {
        GBeanInfo.getGBeanInfo(EntityDeploymentGBean.class.getName(), new MockBundle(getClass().getClassLoader(), "test", 0L));
    }

    public void testMessageDrivenDeploymentGBean() {
        GBeanInfo.getGBeanInfo(MessageDrivenDeploymentGBean.class.getName(), new MockBundle(getClass().getClassLoader(), "test", 0L));
    }
View Full Code Here

    public void testMessageDrivenDeploymentGBean() {
        GBeanInfo.getGBeanInfo(MessageDrivenDeploymentGBean.class.getName(), new MockBundle(getClass().getClassLoader(), "test", 0L));
    }

    public void testStatefulDeploymentGBean() {
        GBeanInfo.getGBeanInfo(StatefulDeploymentGBean.class.getName(), new MockBundle(getClass().getClassLoader(), "test", 0L));
    }
View Full Code Here

    public void testStatefulDeploymentGBean() {
        GBeanInfo.getGBeanInfo(StatefulDeploymentGBean.class.getName(), new MockBundle(getClass().getClassLoader(), "test", 0L));
    }

    public void testStatelessDeploymentGBean() {
        GBeanInfo.getGBeanInfo(StatelessDeploymentGBean.class.getName(), new MockBundle(getClass().getClassLoader(), "test", 0L));
    }
View Full Code Here

        JaasLoginModuleUse loginModuleUse = new JaasLoginModuleUse(loginModule, null, LoginModuleControlFlag.REQUIRED);

        PrincipalInfo.PrincipalEditor principalEditor = new PrincipalInfo.PrincipalEditor();
        principalEditor.setAsText("metro,org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal");
        Bundle bundle = new MockBundle(cl, "", -1);
        ProxyLoginModule.init(new MockBundleContext(bundle));
        realm = new GenericSecurityRealm(domainName, loginModuleUse, true, true, serverInfo, bundle, null);
    }
View Full Code Here

    private ClassLoader classLoader;

    public void testWebClasspath() throws Exception {
        URL resource = classLoader.getResource("deployables/war1.war");
        ClassLoader cl = new URLClassLoader(new URL[] {resource});
        Bundle bundle = new MockBundle(cl, resource.toString(), 0L);
        WebDeployable deployable = new WebDeployable(bundle);
    }
View Full Code Here

    private ClassLoader classLoader;

    public void testLoadClient() throws Exception {
        URL resource = classLoader.getResource("deployables/app-client1.jar");
        ClassLoader cl = new URLClassLoader(new URL[] {resource});
        Bundle bundle = new MockBundle(cl, resource.toString(), 0L);
        ClientDeployable deployable = new ClientDeployable(bundle);
        assertEquals(ModuleType.CAR, deployable.getType());
        Set entrySet = new HashSet(Collections.list(deployable.entries()));
        Set resultSet = new HashSet();
        resultSet.add("META-INF/");
View Full Code Here

        new SecurityServiceImpl(this.getClass().getClassLoader(), serverInfo, GeronimoPolicyConfigurationFactory.class.getName(), GeronimoPolicy.class.getName(), null, null, null, null);
    }

    protected void setUp() throws Exception {
        super.setUp();
        bundle = new MockBundle(getClass().getClassLoader(), "test", 100);
        setUpSecurityService();

        ((SchemaTypeImpl) GerSecurityDocument.type).addSubstitutionGroupMember(org.apache.geronimo.xbeans.geronimo.security.GerSecurityDocument.type.getDocumentElementName());

        kernel = KernelFactory.newInstance(bundle.getBundleContext()).createKernel("test");
View Full Code Here

TOP

Related Classes of org.apache.geronimo.kernel.osgi.MockBundle

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.