Package org.apache.tuscany.common.monitor.impl

Examples of org.apache.tuscany.common.monitor.impl.NullMonitorFactory


    /**
     * Simulates booting a runtime process
     */
    public void testBoot() throws Exception {
        RuntimeContext runtimeContext = new RuntimeContextImpl(new NullMonitorFactory(), builderRegistry,null);
        runtimeContext.start();

        CompositeContext systemContext = runtimeContext.getSystemContext();
        Assert.assertNotNull(systemContext);
        Module systemModule = MockFactory.createSystemModule();
View Full Code Here


        Assert.assertNotNull(testES);
        Assert.assertSame(testService, testES);
    }

    public void testRuntimeBoot() throws Exception {
        RuntimeContext runtime = new RuntimeContextImpl(new NullMonitorFactory(), builderRegistry,null);
        runtime.start();
        runtime.getRootContext();

        CompositeContext system = runtime.getSystemContext();
        system.registerModelObject(MockFactory.createSystemModule());
View Full Code Here

       
        URL url = getClass().getResource("bigbank/sca.module");
        URL parentUrl = new File(url.toURI()).getParentFile().toURL();
        ClassLoader cl = new URLClassLoader(new URL[] { parentUrl }, getClass().getClassLoader());
       
        TuscanyRuntime rt = new TuscanyRuntime(name, uri, cl, new NullMonitorFactory());
        assertNotNull(rt);
       
        Module module = rt.getModuleComponent().getModuleImplementation();

        Assert.assertTrue(module.getName().equals("org.apache.servicemix.sca.bigbank"));
View Full Code Here

     * @see TuscanyRuntime#TuscanyRuntime(String, String, org.apache.tuscany.common.monitor.MonitorFactory)
     */
    public TuscanyRuntime(String name, String uri) throws ConfigurationException {
        this(name, uri,
             Thread.currentThread().getContextClassLoader(),
             new NullMonitorFactory());
    }
View Full Code Here

     * @see TuscanyRuntime#TuscanyRuntime(String, String, org.apache.tuscany.common.monitor.MonitorFactory)
     */
    public TuscanyRuntime(String name, String uri) throws ConfigurationException {
        this(name, uri,
             Thread.currentThread().getContextClassLoader(),
             new NullMonitorFactory());
    }
View Full Code Here

       
        URL url = getClass().getResource("bigbank/sca.module");
        URL parentUrl = new File(url.toURI()).getParentFile().toURL();
        ClassLoader cl = new URLClassLoader(new URL[] { parentUrl }, getClass().getClassLoader());
       
        TuscanyRuntime rt = new TuscanyRuntime(name, uri, cl, new NullMonitorFactory());
        assertNotNull(rt);
       
        Module module = rt.getModuleComponent().getModuleImplementation();

        Assert.assertTrue(module.getName().equals("org.apache.servicemix.sca.bigbank"));
View Full Code Here

TOP

Related Classes of org.apache.tuscany.common.monitor.impl.NullMonitorFactory

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.