~ubuntu-branches/ubuntu/raring/zeroc-icee-java/raring

« back to all changes in this revision

Viewing changes to test/IceE/inheritance/Collocated.java

  • Committer: Bazaar Package Importer
  • Author(s): Francisco Moya
  • Date: 2008-08-07 23:05:39 UTC
  • mfrom: (3.1.2 gutsy)
  • Revision ID: james.westby@ubuntu.com-20080807230539-iiuezo41bclg5yxy
Tags: 1.2.0-3
* Upgraded packaging standards.
* Removed unsatisfiable build dependency (Closes: #487027).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
// **********************************************************************
2
2
//
3
 
// Copyright (c) 2003-2006 ZeroC, Inc. All rights reserved.
 
3
// Copyright (c) 2003-2007 ZeroC, Inc. All rights reserved.
4
4
//
5
5
// This copy of Ice-E is licensed to you under the terms described in the
6
6
// ICEE_LICENSE file included in this distribution.
10
10
public class Collocated
11
11
{
12
12
    public static int
13
 
    run(String[] args, Ice.Communicator communicator, java.io.PrintStream out)
 
13
    run(String[] args, Ice.Communicator communicator, Ice.InitializationData data, java.io.PrintStream out)
14
14
    {
15
15
        communicator.getProperties().setProperty("Test.Proxy", "initial:default -p 12010 -t 10000");
16
16
        communicator.getProperties().setProperty("TestAdapter.Endpoints", "default -p 12010 -t 10000");
17
17
        Ice.ObjectAdapter adapter = communicator.createObjectAdapter("TestAdapter");
18
18
        Ice.Object object = new InitialI(adapter);
19
 
        adapter.add(object, Ice.Util.stringToIdentity("initial"));
 
19
        adapter.add(object, communicator.stringToIdentity("initial"));
20
20
        adapter.activate();
21
21
 
22
22
        AllTests.allTests(communicator, out);
33
33
        try
34
34
        {
35
35
            communicator = Ice.Util.initialize(args);
36
 
            status = run(args, communicator, System.out);
 
36
            status = run(args, communicator, null, System.out);
37
37
        }
38
38
        catch(Ice.LocalException ex)
39
39
        {