blob: 92d57091c9fbc173fc66018d32e700494f6e2b9b (
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
44
45
|
// **********************************************************************
//
// Copyright (c) 2003-2010 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
package test.Ice.seqMapping;
import java.io.PrintWriter;
import test.Ice.seqMapping.Test.*;
public class AllTests
{
public static MyClassPrx
allTests(Ice.Communicator communicator, boolean collocated, PrintWriter out)
{
String ref = "test:default -p 12010";
Ice.ObjectPrx baseProxy = communicator.stringToProxy(ref);
MyClassPrx cl = MyClassPrxHelper.checkedCast(baseProxy);
out.print("testing twoway operations... ");
out.flush();
Twoways.twoways(cl);
out.println("ok");
if(!collocated)
{
out.print("testing twoway operations with AMI... ");
out.flush();
TwowaysAMI.twowaysAMI(cl);
out.println("ok");
out.print("testing twoway operations with new AMI mapping... ");
out.flush();
TwowaysAMI.twowaysAMI(cl);
out.println("ok");
}
return cl;
}
}
|