summaryrefslogtreecommitdiff
path: root/py/test/Ice/objects/Server.py
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2005-09-14 19:44:51 +0000
committerMark Spruiell <mes@zeroc.com>2005-09-14 19:44:51 +0000
commit48918d87206d3cc754f5741f9b0f844c0799ca3a (patch)
tree74189a0639c5dce5bd39a0ddbd7c6301ca6d44d2 /py/test/Ice/objects/Server.py
parentfix for bug 282 (diff)
downloadice-48918d87206d3cc754f5741f9b0f844c0799ca3a.tar.bz2
ice-48918d87206d3cc754f5741f9b0f844c0799ca3a.tar.xz
ice-48918d87206d3cc754f5741f9b0f844c0799ca3a.zip
adding collocated tests
Diffstat (limited to 'py/test/Ice/objects/Server.py')
-rw-r--r--py/test/Ice/objects/Server.py59
1 files changed, 1 insertions, 58 deletions
diff --git a/py/test/Ice/objects/Server.py b/py/test/Ice/objects/Server.py
index a9d1790ba8d..2b4ae46e693 100644
--- a/py/test/Ice/objects/Server.py
+++ b/py/test/Ice/objects/Server.py
@@ -24,67 +24,10 @@ import Ice
Ice.loadSlice('Test.ice')
import Test, TestI
-class InitialI(Test.Initial):
- def __init__(self, adapter):
- self._adapter = adapter
- self._b1 = TestI.BI()
- self._b2 = TestI.BI()
- self._c = TestI.CI()
- self._d = TestI.DI()
-
- self._b1.theA = self._b2 # Cyclic reference to another B
- self._b1.theB = self._b1 # Self reference.
- self._b1.theC = None # Null reference.
-
- self._b2.theA = self._b2 # Self reference, using base.
- self._b2.theB = self._b1 # Cyclic reference to another B
- self._b2.theC = self._c # Cyclic reference to a C.
-
- self._c.theB = self._b2 # Cyclic reference to a B.
-
- self._d.theA = self._b1 # Reference to a B.
- self._d.theB = self._b2 # Reference to a B.
- self._d.theC = None # Reference to a C.
-
- def shutdown(self, current=None):
- self._adapter.getCommunicator().shutdown()
-
- def getB1(self, current=None):
- self._b1.preMarshalInvoked = False
- self._b2.preMarshalInvoked = False
- self._c.preMarshalInvoked = False
- return self._b1
-
- def getB2(self, current=None):
- self._b1.preMarshalInvoked = False
- self._b2.preMarshalInvoked = False
- self._c.preMarshalInvoked = False
- return self._b2
-
- def getC(self, current=None):
- self._b1.preMarshalInvoked = False
- self._b2.preMarshalInvoked = False
- self._c.preMarshalInvoked = False
- return self._c
-
- def getD(self, current=None):
- self._b1.preMarshalInvoked = False
- self._b2.preMarshalInvoked = False
- self._c.preMarshalInvoked = False
- self._d.preMarshalInvoked = False
- return self._d
-
- def getAll(self, current=None):
- self._b1.preMarshalInvoked = False
- self._b2.preMarshalInvoked = False
- self._c.preMarshalInvoked = False
- self._d.preMarshalInvoked = False
- return (self._b1, self._b2, self._c, self._d)
-
def run(args, communicator):
communicator.getProperties().setProperty("TestAdapter.Endpoints", "default -p 12345 -t 10000")
adapter = communicator.createObjectAdapter("TestAdapter")
- initial = InitialI(adapter)
+ initial = TestI.InitialI(adapter)
adapter.add(initial, Ice.stringToIdentity("initial"))
adapter.activate()
communicator.waitForShutdown()