Package org.apache.tuscany.core.mock.component

Examples of org.apache.tuscany.core.mock.component.StatelessComponentImpl


            MockFactory.createAtomicComponent("comp1", scope, StatelessComponentImpl.class);
        scope.register(context1);
        SystemAtomicComponent context2 =
            MockFactory.createAtomicComponent("comp2", scope, StatelessComponentImpl.class);
        scope.register(context2);
        StatelessComponentImpl comp1 = (StatelessComponentImpl) scope.getInstance(context1);
        Assert.assertNotNull(comp1);
        StatelessComponentImpl comp2 = (StatelessComponentImpl) scope.getInstance(context2);
        Assert.assertNotNull(comp2);
        Assert.assertNotSame(comp1, comp2);
        scope.stop();
    }
View Full Code Here


        StatelessComponent comp1 = (StatelessComponentImpl) scope.getInstance(context1);
        Assert.assertNotNull(comp1);
        SystemAtomicComponent context2 =
            MockFactory.createAtomicComponent("comp2", scope, StatelessComponentImpl.class);
        scope.register(context2);
        StatelessComponentImpl comp2 = (StatelessComponentImpl) scope.getInstance(context2);
        Assert.assertNotNull(comp2);
        scope.stop();
    }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.core.mock.component.StatelessComponentImpl

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.