~ubuntu-branches/ubuntu/quantal/zeroc-ice/quantal

« back to all changes in this revision

Viewing changes to py/test/Ice/servantLocator/Collocated.py

  • Committer: Bazaar Package Importer
  • Author(s): Cleto Martin Angelina
  • Date: 2011-04-25 18:44:24 UTC
  • mfrom: (6.1.14 sid)
  • Revision ID: james.westby@ubuntu.com-20110425184424-sep9i9euu434vq4c
Tags: 3.4.1-7
* Bug fix: "libdb5.1-java.jar was renamed to db.jar", thanks to Ondřej
  Surý (Closes: #623555).
* Bug fix: "causes noise in php5", thanks to Jayen Ashar (Closes:
  #623533).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/env python
2
2
# **********************************************************************
3
3
#
4
 
# Copyright (c) 2003-2009 ZeroC, Inc. All rights reserved.
 
4
# Copyright (c) 2003-2010 ZeroC, Inc. All rights reserved.
5
5
#
6
6
# This copy of Ice is licensed to you under the terms described in the
7
7
# ICE_LICENSE file included in this distribution.
12
12
 
13
13
import Ice
14
14
Ice.loadSlice('Test.ice')
15
 
import Test, TestI, AllTests
 
15
import Test, TestI, AllTests, TestActivationI
16
16
 
17
17
class TestServer(Ice.Application):
18
18
    def run(self, args):
19
 
        self.communicator().getProperties().setProperty("TestAdapter.Endpoints", "default -p 12010 -t 10000")
 
19
        self.communicator().getProperties().setProperty("TestAdapter.Endpoints", "default -p 12010")
20
20
        self.communicator().getProperties().setProperty("Ice.Warn.Dispatch", "0")
21
21
 
22
22
        adapter = self.communicator().createObjectAdapter("TestAdapter")
24
24
        adapter.addServantLocator(TestI.ServantLocatorI("category"), "category")
25
25
        adapter.addServantLocator(TestI.ServantLocatorI(""), "")
26
26
        adapter.add(TestI.TestI(), self.communicator().stringToIdentity("asm"))
 
27
        adapter.add(TestActivationI.TestActivationI(), self.communicator().stringToIdentity("test/activation"))
27
28
 
28
29
        AllTests.allTests(self.communicator(), False)
29
30