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

« back to all changes in this revision

Viewing changes to test/IceE/operations/Client.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 Client
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 initData, java.io.PrintStream out)
14
14
    {
15
 
        Test.MyClassPrx myClass = AllTests.allTests(communicator, out);
 
15
        Test.MyClassPrx myClass = AllTests.allTests(communicator, initData, out);
16
16
 
17
17
        out.print("testing server shutdown... ");
18
18
        out.flush();
39
39
        try
40
40
        {
41
41
            Ice.StringSeqHolder argsH = new Ice.StringSeqHolder(args);
42
 
            Ice.Properties properties = Ice.Util.getDefaultProperties(argsH);
 
42
            Ice.InitializationData initData = new Ice.InitializationData();
 
43
            initData.properties = Ice.Util.createProperties(argsH);
43
44
 
44
45
            //
45
46
            // We must set MessageSizeMax to an explicit value,
46
47
            // because we run tests to check whether
47
48
            // Ice.MemoryLimitException is raised as expected.
48
49
            //
49
 
            properties.setProperty("Ice.MessageSizeMax", "100");
50
 
 
51
 
            communicator = Ice.Util.initialize(argsH);
 
50
            initData.properties.setProperty("Ice.MessageSizeMax", "100");
52
51
 
53
52
            //
54
53
            // We don't want connection warnings because of the timeout test.
55
54
            //
56
 
            properties.setProperty("Ice.Warn.Connections", "0");
 
55
            initData.properties.setProperty("Ice.Warn.Connections", "0");
 
56
 
 
57
            communicator = Ice.Util.initialize(argsH, initData);
57
58
            
58
 
            status = run(argsH.value, communicator, System.out);
 
59
            status = run(argsH.value, communicator, initData, System.out);
59
60
        }
60
61
        catch(Ice.LocalException ex)
61
62
        {