Package org.apache.tuscany.sca.extensibility.test

Examples of org.apache.tuscany.sca.extensibility.test.TestImpl


    @Test
    public void testNewInstance() throws Exception {
        Test2Impl implA = ServiceHelper.newInstance(Test2Impl.class);
        Assert.assertNull(implA.getRegistry());

        TestImpl impl1 = ServiceHelper.newInstance(TestImpl.class);
        Assert.assertNotNull(impl1);
    }
View Full Code Here


        ExtensionPointRegistry registry = new DefaultExtensionPointRegistry();
        Iterator<ServiceDeclaration> iterator = sds.iterator();
        Test2Impl implA = ServiceHelper.newInstance(registry, iterator.next());
        Assert.assertSame(registry, implA.getRegistry());

        TestImpl impl1 = ServiceHelper.newInstance(registry, iterator.next());
        Assert.assertNotNull(impl1);
    }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.extensibility.test.TestImpl

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.