summaryrefslogtreecommitdiff
path: root/python/test/Ice/operations/ServerAMD.py
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2016-08-16 16:37:18 +0200
committerBenoit Foucher <benoit@zeroc.com>2016-08-16 16:37:18 +0200
commit88293201e566c982830482601e878ff4bc643782 (patch)
treeb0ffc2633b8404cde06d4786927b1f6b63024849 /python/test/Ice/operations/ServerAMD.py
parentFixed ICE-7273 - C# AMI test failure (diff)
downloadice-88293201e566c982830482601e878ff4bc643782.tar.bz2
ice-88293201e566c982830482601e878ff4bc643782.tar.xz
ice-88293201e566c982830482601e878ff4bc643782.zip
C# mapping changes
- user exceptions are no longer checked on the server side (ICE-6980) - support for ["marshaled-result"] metadata - AMD operations now return a Task - improved dispatch interceptors - PropertiesAdminI::setProperties impl. now invokes callbacks synchronously
Diffstat (limited to 'python/test/Ice/operations/ServerAMD.py')
-rwxr-xr-xpython/test/Ice/operations/ServerAMD.py42
1 files changed, 30 insertions, 12 deletions
diff --git a/python/test/Ice/operations/ServerAMD.py b/python/test/Ice/operations/ServerAMD.py
index 20f1dc2de45..05777bad2d7 100755
--- a/python/test/Ice/operations/ServerAMD.py
+++ b/python/test/Ice/operations/ServerAMD.py
@@ -369,50 +369,68 @@ class MyDerivedClassI(Test.MyDerivedClass):
def opShort1_async(self, cb, value, current=None):
cb.ice_response(value)
-
+
def opInt1_async(self, cb, value, current=None):
cb.ice_response(value)
-
+
def opLong1_async(self, cb, value, current=None):
cb.ice_response(value)
-
+
def opFloat1_async(self, cb, value, current=None):
cb.ice_response(value)
-
+
def opDouble1_async(self, cb, value, current=None):
cb.ice_response(value)
-
+
def opString1_async(self, cb, value, current=None):
cb.ice_response(value)
-
+
def opStringS1_async(self, cb, value, current=None):
cb.ice_response(value)
-
+
def opByteBoolD1_async(self, cb, value, current=None):
cb.ice_response(value)
-
+
def opStringS2_async(self, cb, value, current=None):
cb.ice_response(value)
-
+
def opByteBoolD2_async(self, cb, value, current=None):
cb.ice_response(value)
-
+
def opMyClass1_async(self, cb, value, current=None):
return cb.ice_response(value)
def opMyStruct1_async(self, cb, value, current=None):
return cb.ice_response(value)
-
+
def opStringLiterals_async(self, cb, current=None):
return cb.ice_response([
Test.s0, Test.s1, Test.s2, Test.s3, Test.s4, Test.s5, Test.s6, Test.s7, Test.s8, Test.s9, Test.s10,
Test.sw0, Test.sw1, Test.sw2, Test.sw3, Test.sw4, Test.sw5, Test.sw6, Test.sw7, Test.sw8, Test.sw9, Test.sw10,
Test.ss0, Test.ss1, Test.ss2, Test.ss3, Test.ss4, Test.ss5,
Test.su0, Test.su1, Test.su2])
-
+
def opWStringLiterals_async(self, cb, current=None):
return self.opStringLiterals_async(cb, current)
+ def opMStruct1_async(self, cb, current):
+ cb.ice_response(Test.Structure())
+
+ def opMStruct2_async(self, cb, p1, current):
+ cb.ice_response(p1, p1)
+
+ def opMSeq1_async(self, cb, current):
+ cb.ice_response([])
+
+ def opMSeq2_async(self, cb, p1, current):
+ cb.ice_response(p1, p1)
+
+ def opMDict1_async(self, cb, current):
+ cb.ice_response({})
+
+ def opMDict2_async(self, cb, p1, current):
+ cb.ice_response(p1, p1)
+
def run(args, communicator):
communicator.getProperties().setProperty("TestAdapter.Endpoints", "default -p 12010:udp")
adapter = communicator.createObjectAdapter("TestAdapter")