Examples of ORBSetup


Examples of org.jacorb.test.common.ORBSetup

   public static Test suite ()
   {
      TestSuite suite = new TestSuite ("DynAny Base Tests");
      Setup setup = new Setup (suite);
      ORBSetup osetup = new ORBSetup (setup);

      suite.addTest (new DynAnyBaseTest ("testFactoryCreateFromAny"));
      suite.addTest (new DynAnyBaseTest ("testFactoryCreateFromTypeCode"));
      suite.addTest (new DynAnyBaseTest ("testFactoryInconsistentTypeCodeEx"));
      suite.addTest (new DynAnyBaseTest ("testDynAnyLocalityConstraint"));
View Full Code Here

Examples of org.jacorb.test.common.ORBSetup

   public static Test suite ()
   {
      TestSuite suite = new TestSuite ("DynStruct Tests");
      Setup setup = new Setup (suite);
      ORBSetup osetup = new ORBSetup (setup);

      suite.addTest (new DynAnyStructTest ("testFactoryCreateFromAny"));
      suite.addTest (new DynAnyStructTest ("testFactoryCreateFromTypeCode"));
      suite.addTest (new DynAnyStructTest ("testFactoryCreateFromIDLTypeCode"));
      suite.addTest (new DynAnyStructTest ("testCompareDynAny"));
View Full Code Here

Examples of org.jacorb.test.common.ORBSetup

   public static Test suite ()
   {
      TestSuite suite = new TestSuite ("Non-empty Exception DynStruct Tests");
      Setup setup = new Setup (suite);
      ORBSetup osetup = new ORBSetup (setup);

      suite.addTest (new DynAnyNonEmptyExTest ("testFactoryCreateFromAny"));
      suite.addTest (new DynAnyNonEmptyExTest ("testFactoryCreateFromTypeCode"));
      suite.addTest (new DynAnyNonEmptyExTest ("testFactoryCreateFromIDLTypeCode"));
      suite.addTest (new DynAnyNonEmptyExTest ("testCompareDynAny"));
View Full Code Here

Examples of org.jacorb.test.common.ORBSetup

   public static Test suite ()
   {
      TestSuite suite = new TestSuite ("DynEnum Tests");
      Setup setup = new Setup (suite);
      ORBSetup osetup = new ORBSetup (setup);

      suite.addTest (new DynAnyEnumTest ("testFactoryCreateFromAny"));
      suite.addTest (new DynAnyEnumTest ("testFactoryCreateFromTypeCode"));
      suite.addTest (new DynAnyEnumTest ("testFactoryCreateFromIDLTypeCode"));
      suite.addTest (new DynAnyEnumTest ("testCompareDynAny"));
View Full Code Here

Examples of org.jacorb.test.common.ORBSetup

   public static Test suite ()
   {
      TestSuite suite = new TestSuite ("Bounded DynSequence Tests");
      Setup setup = new Setup (suite);
      ORBSetup osetup = new ORBSetup (setup);

      suite.addTest (new DynAnyBoundedSeqTest ("testFactoryCreateFromAny"));
      suite.addTest (new DynAnyBoundedSeqTest ("testFactoryCreateFromTypeCode"));
      suite.addTest (new DynAnyBoundedSeqTest ("testFactoryCreateFromIDLTypeCode"));
      suite.addTest (new DynAnyBoundedSeqTest ("testCompareDynAny"));
View Full Code Here

Examples of org.jacorb.test.common.ORBSetup

   public static Test suite ()
   {
      TestSuite suite = new TestSuite
         ("DynUnion Tests using Integer Discriminator");
      Setup setup = new Setup (suite);
      ORBSetup osetup = new ORBSetup (setup);

      suite.addTest (new DynAnyUnionIntTest ("testFactoryCreateFromAny"));
      suite.addTest (new DynAnyUnionIntTest ("testFactoryCreateFromTypeCode"));
      suite.addTest (new DynAnyUnionIntTest ("testFactoryCreateFromIDLTypeCode"));
      suite.addTest (new DynAnyUnionIntTest ("testCompareDynAnyUnamedMember"));
View Full Code Here

Examples of org.jacorb.test.common.ORBSetup

    private ORBSetup orbSetup;
    private ORB orb;

    protected void setUp() throws Exception
    {
        orbSetup = new ORBSetup(this);
        orbSetup.setUp();
        orb = orbSetup.getORB();

        serverSetup = new ServerSetup(this, SyncScopeServerImpl.class.getName());
        serverSetup.setUp();
View Full Code Here

Examples of org.jacorb.test.common.ORBSetup

    /**
     * create a reference and return its details as string printed using dior.
     */
    private String getProfileDetails(Properties props) throws Exception, InvalidPolicy, AdapterAlreadyExists, WrongPolicy
    {
        ORBSetup setup = new ORBSetup(this, props);
        try
        {
            setup.setUp();

            POA rootPOA = setup.getRootPOA();
            POA testPOA = rootPOA.create_POA("MyPOA", rootPOA.the_POAManager(), new Policy[] {rootPOA.create_id_assignment_policy(IdAssignmentPolicyValue.USER_ID)});
            byte[] key = new byte[] {1, 2, 3, 4};
            org.omg.CORBA.Object object = testPOA.create_reference_with_id(key, BasicServerHelper.id());

            ObjectImpl objectImpl = (ObjectImpl) object;
            Delegate delegate = (Delegate) objectImpl._get_delegate();

            ParsedIOR parsedIOR = delegate.getParsedIOR();

            StringWriter out = new StringWriter();
            final PrintWriter printWriter = new PrintWriter(out);
            PrintIOR.printIOR(parsedIOR, printWriter);
            printWriter.close();

            return out.toString();
        }
        finally
        {
            setup.tearDown();
        }
    }
View Full Code Here

Examples of org.jacorb.test.common.ORBSetup

    public void setUpTest() throws Exception
    {
      Properties props = new Properties();
      props.setProperty("ORBInitRef.InterfaceRepository", getRepository().toString());
      myORB = new ORBSetup(this, props);
      myORB.setUp();

        controlScheduledFuture_ = MockControl.createControl(ScheduledFuture.class);
        mockScheduledFuture_ = (ScheduledFuture) controlScheduledFuture_.getMock();
        controlAdmin_ = MockControl.createNiceControl(ITypedAdmin.class);
View Full Code Here

Examples of org.jacorb.test.common.ORBSetup

        setup1.tearDown();

        Iterator i = orbs.iterator();
        while(i.hasNext())
        {
            ORBSetup setup = (ORBSetup) i.next();
            setup.tearDown();
        }

        orbs.clear();
    }
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.