Esempio n. 1
0
 private static int run(string[] args, Ice.Communicator communicator)
 {
     communicator.getProperties().setProperty("TestAdapter.Endpoints", "default -p 12010");
     Ice.ObjectAdapter adapter = communicator.createObjectAdapter("TestAdapter");
     Ice.Object obj = new InitialI(adapter);
     adapter.add(obj, communicator.stringToIdentity("initial"));
     AllTests.allTests(communicator);
     return 0;
 }
Esempio n. 2
0
 private static int run(string[] args, Ice.Communicator communicator)
 {
     communicator.getProperties().setProperty("TestAdapter.Endpoints", "default -p 12010");
     Ice.ObjectAdapter adapter = communicator.createObjectAdapter("TestAdapter");
     Ice.Object @object = new InitialI(adapter);
     adapter.add(@object, communicator.stringToIdentity("initial"));
     adapter.activate();
     communicator.waitForShutdown();
     return 0;
 }
Esempio n. 3
0
 private static int run(string[] args, Ice.Communicator communicator)
 {
     communicator.getProperties().setProperty("TestAdapter.Endpoints", "default -p 12010");
     Ice.ObjectAdapter adapter = communicator.createObjectAdapter("TestAdapter");
     Initial initial = new InitialI(adapter);
     adapter.add(initial, communicator.stringToIdentity("initial"));
     AllTests.allTests(communicator, true);
     // We must call shutdown even in the collocated case for cyclic dependency cleanup
     initial.shutdown();
     return 0;
 }
Esempio n. 4
0
        public override int run(string[] args)
        {
            if(args.Length > 0)
            {
                System.Console.Error.WriteLine(appName() + ": too many arguments");
                return 1;
            }

            Ice.ObjectAdapter adapter = communicator().createObjectAdapter("Value");
            Ice.Object @object = new InitialI(adapter);
            adapter.add(@object, communicator().stringToIdentity("initial"));
            adapter.activate();
            communicator().waitForShutdown();
            return 0;
        }
Esempio n. 5
0
    private static int run(string[] args, Ice.Communicator communicator)
    {
        communicator.addValueFactory(MyValueFactory, "::Test::I");
        communicator.addValueFactory(MyValueFactory, "::Test::J");
        communicator.addValueFactory(MyValueFactory, "::Test::H");

        communicator.getProperties().setProperty("TestAdapter.Endpoints", "default -p 12010");
        Ice.ObjectAdapter adapter = communicator.createObjectAdapter("TestAdapter");
        Ice.Object @object = new InitialI(adapter);
        adapter.add(@object, communicator.stringToIdentity("initial"));
        @object = new UnexpectedObjectExceptionTestI();
        adapter.add(@object, communicator.stringToIdentity("uoet"));
        adapter.activate();
        communicator.waitForShutdown();
        return 0;
    }