blob: 39d108d3f88fe3a17859d4e0b336309bb9185a3e (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
|
// **********************************************************************
//
// Copyright (c) 2003-2017 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.
//
// **********************************************************************
#import <objc/Ice.h>
#import <TestCommon.h>
#import <OperationsTest.h>
id<TestOperationsMyClassPrx>
operationsAllTests(id<ICECommunicator> communicator)
{
NSString* ref = @"test:default -p 12010";
id<ICEObjectPrx> base = [communicator stringToProxy:(ref)];
id<TestOperationsMyClassPrx> cl = [TestOperationsMyClassPrx checkedCast:base];
id<TestOperationsMyDerivedClassPrx> derived = [TestOperationsMyDerivedClassPrx checkedCast:cl];
tprintf("testing twoway operations... ");
void twoways(id<ICECommunicator>, id<TestOperationsMyClassPrx>);
twoways(communicator, cl);
twoways(communicator, derived);
[derived opDerived];
tprintf("ok\n");
tprintf("testing oneway operations... ");
void oneways(id<ICECommunicator>, id<TestOperationsMyClassPrx>);
oneways(communicator, cl);
tprintf("ok\n");
tprintf("testing twoway operations with AMI... ");
void twowaysNewAMI(id<ICECommunicator>, id<TestOperationsMyClassPrx>);
twowaysNewAMI(communicator, cl);
twowaysNewAMI(communicator, derived);
tprintf("ok\n");
tprintf("testing oneway operations with AMI... ");
void onewaysNewAMI(id<ICECommunicator>, id<TestOperationsMyClassPrx>);
onewaysNewAMI(communicator, cl);
tprintf("ok\n");
tprintf("testing batch oneway operations... ");
void batchOneways(id<TestOperationsMyClassPrx>);
batchOneways(cl);
batchOneways(derived);
tprintf("ok\n");
tprintf("testing batch oneway operations with AMI... ");
void batchOnewaysAMI(id<TestOperationsMyClassPrx>);
batchOnewaysAMI(cl);
batchOnewaysAMI(derived);
tprintf("ok\n");
return cl;
}
|