Examples of MockBundle


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

        InputStream in = getClass().getResourceAsStream("/handlers_port.xml");
        assertTrue(in != null);
        HandlerChainsInfo handlerChains = toHandlerChains(in);
        assertEquals(4, handlerChains.handleChains.size());

        GeronimoHandlerResolver resolver = new GeronimoHandlerResolver(new MockBundle(getClass().getClassLoader(), null, 11L), getClass(), handlerChains, null);

        List<Handler> handlers = null;

        handlers = resolver.getHandlerChain(new TestPortInfo(null, null, null));
        assertEquals(0, handlers.size());
View Full Code Here

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

        InputStream in = getClass().getResourceAsStream("/handlers_mixed.xml");
        assertTrue(in != null);
        HandlerChainsInfo handlerChains = toHandlerChains(in);
        assertEquals(3, handlerChains.handleChains.size());

        GeronimoHandlerResolver resolver = new GeronimoHandlerResolver(new MockBundle(getClass().getClassLoader(), null, 11L), getClass(), handlerChains, null);

        List<Handler> handlers = null;

        handlers = resolver.getHandlerChain(new TestPortInfo(null, null, null));
        assertEquals(0, handlers.size());
View Full Code Here

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

//    }
   
    public void testNonNullJavaFileUrls() throws Exception {
        URL url = getClass().getClassLoader().getResource(getClass().getName().replace('.', '/') + ".class");
        String base = url.toString().substring(0, url.toString().lastIndexOf('/')) + "/";
        MockBundle bundle = new MockBundle(getClass().getClassLoader(), base, 0L);
        PersistenceUnitGBean gbean = new PersistenceUnitGBean("foo",
                null,
                "JTA",
                null,
                null,
View Full Code Here

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

        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

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

/**
* @version $Rev: 946044 $ $Date: 2010-05-19 14:33:29 +0800 (Wed, 19 May 2010) $
*/
public class GBeanTest extends TestCase {
    public void testOpenEjbSystemGBean() {
        GBeanInfo.getGBeanInfo(OpenEjbSystemGBean.class.getName(), new MockBundle(getClass().getClassLoader(), "test", 0L));
    }
View Full Code Here

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

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

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

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

    public void testEjbModuleImplGBean() {
        GBeanInfo.getGBeanInfo(EjbModuleImpl.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

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

    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

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

    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

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

    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
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.