summaryrefslogtreecommitdiff
path: root/java/test/Ice/adapterDeactivation/Client.java
blob: f25bece389420e61605aa8ca79253208a0f9e450 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// **********************************************************************
//
// Copyright (c) 2002
// Mutable Realms, Inc.
// Huntsville, AL, USA
//
// All Rights Reserved
//
// **********************************************************************

public class Client
{
    static class TestClient extends Ice.Application
    {
        public int
        run(String[] args)
        {
            TestPrx obj = AllTests.allTests(communicator());

            System.out.print("testing whether server is gone... ");
            System.out.flush();
            try
            {
                obj.ice_ping();
                throw new RuntimeException();
            }
            catch(Ice.LocalException ex)
            {
                System.out.println("ok");
            }

            return 0;
        }
    }

    public static void
    main(String[] args)
    {
        TestClient app = new TestClient();
        int result = app.main("Client", args);
        System.exit(result);
    }
}