Package org.apache.tuscany.sca.test.corba.generated

Examples of org.apache.tuscany.sca.test.corba.generated.ScenarioSix


            }
            org.omg.CORBA.Object objRef = orb.resolve_initial_references("NameService");
            NamingContext ncRef = NamingContextHelper.narrow(objRef);
            NameComponent nc = new NameComponent(SERVICE_NAME, "");
            NameComponent path[] = {nc};
            ScenarioSix scenarioSix = new ScenarioSixServant();
            ncRef.rebind(path, scenarioSix);
            // obtain node
            node = NodeFactory.getInstance().createNode("ScenarioSix.composite", TestCorbaHost.class.getClassLoader()).start();
        } catch (Exception e) {
            e.printStackTrace();
View Full Code Here


        try {
            org.omg.CORBA.Object objRef = orb.resolve_initial_references("NameService");
            NamingContext ncRef = NamingContextHelper.narrow(objRef);
            NameComponent nc = new NameComponent(TUSCANY_SERVICE_NAME, "");
            NameComponent path[] = {nc};
            ScenarioSix ref = ScenarioSixHelper.narrow(ncRef.resolve(path));
            String[][] stringArg = getStringArray();
            String[][] stringRes = ref.passStringArray(stringArg);
            assertTrue(areArraysEqual(stringArg, stringRes));
            AnnotatedStruct structArg = new AnnotatedStruct();
            structArg.stringArray = getStringArray();
            AnnotatedStruct structRes = ref.passAnnotatedStruct(structArg);
            assertTrue(areArraysEqual(structArg.stringArray, structRes.stringArray));
        } catch (Exception e) {
            e.printStackTrace();
            fail();
        }
View Full Code Here

        try {
            org.omg.CORBA.Object objRef = orb.resolve_initial_references("NameService");
            NamingContext ncRef = NamingContextHelper.narrow(objRef);
            NameComponent nc = new NameComponent(TUSCANY_SERVICE_NAME, "");
            NameComponent path[] = {nc};
            ScenarioSix ref = ScenarioSixHelper.narrow(ncRef.resolve(path));
            RichUnion arg = new RichUnion();
            InnerUnion inner = new InnerUnion();
            inner.y(20f);
            arg.iu(inner);
            RichUnion result = ref.passRichUnion(arg);
            assertEquals(arg.iu().y(), result.iu().y(), 0.0f);
            arg = new RichUnion();
            arg.y(15f);
            result = ref.passRichUnion(arg);
            assertEquals(arg.y(), result.y(), 0.0f);
        } catch (Exception e) {
            e.printStackTrace();
            fail();
        }
View Full Code Here

            }
            org.omg.CORBA.Object objRef = orb.resolve_initial_references("NameService");
            NamingContext ncRef = NamingContextHelper.narrow(objRef);
            NameComponent nc = new NameComponent(SERVICE_NAME, "");
            NameComponent path[] = {nc};
            ScenarioSix scenarioSix = new ScenarioSixServant();
            ncRef.rebind(path, scenarioSix);
            // obtain domain
            domain = SCADomain.newInstance("ScenarioSix.composite");
        } catch (Exception e) {
            e.printStackTrace();
View Full Code Here

        try {
            org.omg.CORBA.Object objRef = orb.resolve_initial_references("NameService");
            NamingContext ncRef = NamingContextHelper.narrow(objRef);
            NameComponent nc = new NameComponent(TUSCANY_SERVICE_NAME, "");
            NameComponent path[] = {nc};
            ScenarioSix ref = ScenarioSixHelper.narrow(ncRef.resolve(path));
            String[][] stringArg = getStringArray();
            String[][] stringRes = ref.passStringArray(stringArg);
            assertTrue(areArraysEqual(stringArg, stringRes));
            AnnotatedStruct structArg = new AnnotatedStruct();
            structArg.stringArray = getStringArray();
            AnnotatedStruct structRes = ref.passAnnotatedStruct(structArg);
            assertTrue(areArraysEqual(structArg.stringArray, structRes.stringArray));
        } catch (Exception e) {
            e.printStackTrace();
            fail();
        }
View Full Code Here

        try {
            org.omg.CORBA.Object objRef = orb.resolve_initial_references("NameService");
            NamingContext ncRef = NamingContextHelper.narrow(objRef);
            NameComponent nc = new NameComponent(TUSCANY_SERVICE_NAME, "");
            NameComponent path[] = {nc};
            ScenarioSix ref = ScenarioSixHelper.narrow(ncRef.resolve(path));
            RichUnion arg = new RichUnion();
            InnerUnion inner = new InnerUnion();
            inner.y(20f);
            arg.iu(inner);
            RichUnion result = ref.passRichUnion(arg);
            assertEquals(arg.iu().y(), result.iu().y(), 0.0f);
            arg = new RichUnion();
            arg.y(15f);
            result = ref.passRichUnion(arg);
            assertEquals(arg.y(), result.y(), 0.0f);
        } catch (Exception e) {
            e.printStackTrace();
            fail();
        }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.test.corba.generated.ScenarioSix

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.