~ubuntu-branches/ubuntu/quantal/zeroc-ice/quantal

« back to all changes in this revision

Viewing changes to java/test/Ice/serialize/Client.java

  • Committer: Bazaar Package Importer
  • Author(s): Cleto Martin Angelina
  • Date: 2011-04-25 18:44:24 UTC
  • mfrom: (6.1.14 sid)
  • Revision ID: james.westby@ubuntu.com-20110425184424-sep9i9euu434vq4c
Tags: 3.4.1-7
* Bug fix: "libdb5.1-java.jar was renamed to db.jar", thanks to Ondřej
  Surý (Closes: #623555).
* Bug fix: "causes noise in php5", thanks to Jayen Ashar (Closes:
  #623533).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
// **********************************************************************
2
2
//
3
 
// Copyright (c) 2003-2009 ZeroC, Inc. All rights reserved.
 
3
// Copyright (c) 2003-2010 ZeroC, Inc. All rights reserved.
4
4
//
5
5
// This copy of Ice is licensed to you under the terms described in the
6
6
// ICE_LICENSE file included in this distribution.
7
7
//
8
8
// **********************************************************************
9
9
 
10
 
import Test.*;
 
10
package test.Ice.serialize;
 
11
import test.Ice.serialize.Test.*;
11
12
 
12
 
public class Client
 
13
public class Client extends test.Util.Application
13
14
{
14
 
    private static int
15
 
    run(String[] args, Ice.Communicator communicator)
 
15
    public int
 
16
    run(String[] args)
16
17
    {
17
 
        InitialPrx initial = AllTests.allTests(communicator, false);
 
18
        java.io.PrintWriter out = getWriter();
 
19
        InitialPrx initial = AllTests.allTests(communicator(), false, out);
18
20
        initial.shutdown();
19
21
        return 0;
20
22
    }
21
23
 
22
 
    public static void
23
 
    main(String[] args)
24
 
    {
25
 
        int status = 0;
26
 
        Ice.Communicator communicator = null;
27
 
 
28
 
        try
29
 
        {
30
 
            communicator = Ice.Util.initialize(args);
31
 
            status = run(args, communicator);
32
 
        }
33
 
        catch(Exception ex)
34
 
        {
35
 
            ex.printStackTrace();
36
 
            status = 1;
37
 
        }
38
 
 
39
 
        if(communicator != null)
40
 
        {
41
 
            try
42
 
            {
43
 
                communicator.destroy();
44
 
            }
45
 
            catch(Ice.LocalException ex)
46
 
            {
47
 
                ex.printStackTrace();
48
 
                status = 1;
49
 
            }
50
 
        }
 
24
    protected Ice.InitializationData getInitData(Ice.StringSeqHolder argsH)
 
25
    {
 
26
        Ice.InitializationData initData = new Ice.InitializationData();
 
27
        initData.properties = Ice.Util.createProperties(argsH);
 
28
        initData.properties.setProperty("Ice.Package.Test", "test.Ice.serialize");
 
29
        return initData;
 
30
    }
 
31
 
 
32
    public static void main(String[] args)
 
33
    {
 
34
        Client c = new Client();
 
35
        int status = c.main("Client", args);
51
36
 
52
37
        System.gc();
53
38
        System.exit(status);