summaryrefslogtreecommitdiff
path: root/java/test/Ice/exceptions/AllTests.java
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2006-12-13 14:34:57 +0000
committerDwayne Boone <dwayne@zeroc.com>2006-12-13 14:34:57 +0000
commit769e22f35e9d21344639a36e07ec90ee2656140c (patch)
tree36ac09ee40ddf18d408736ceaa59ee9f8e05e414 /java/test/Ice/exceptions/AllTests.java
parentAdded support for server logs (diff)
downloadice-769e22f35e9d21344639a36e07ec90ee2656140c.tar.bz2
ice-769e22f35e9d21344639a36e07ec90ee2656140c.tar.xz
ice-769e22f35e9d21344639a36e07ec90ee2656140c.zip
Bug 1570 - object adapter configuration
Diffstat (limited to 'java/test/Ice/exceptions/AllTests.java')
-rw-r--r--java/test/Ice/exceptions/AllTests.java18
1 files changed, 15 insertions, 3 deletions
diff --git a/java/test/Ice/exceptions/AllTests.java b/java/test/Ice/exceptions/AllTests.java
index 493795d9436..a9f75b9e34b 100644
--- a/java/test/Ice/exceptions/AllTests.java
+++ b/java/test/Ice/exceptions/AllTests.java
@@ -719,7 +719,18 @@ public class AllTests
{
{
System.out.print("testing object adapter registration exceptions... ");
- Ice.ObjectAdapter first = communicator.createObjectAdapter("TestAdapter0");
+ Ice.ObjectAdapter first;
+ try
+ {
+ first = communicator.createObjectAdapter("TestAdapter0");
+ }
+ catch(Ice.InitializationException ex)
+ {
+ // Expected
+ }
+
+ communicator.getProperties().setProperty("TestAdapter0.Endpoints", "default");
+ first = communicator.createObjectAdapter("TestAdapter0");
try
{
Ice.ObjectAdapter second = communicator.createObjectAdapter("TestAdapter0");
@@ -730,7 +741,6 @@ public class AllTests
// Expected
}
- communicator.getProperties().setProperty("TestAdapter0.Endpoints", "");
try
{
Ice.ObjectAdapter second =
@@ -741,13 +751,14 @@ public class AllTests
{
// Expected
}
- test(communicator.getProperties().getProperty("TestAdapter0.Endpoints").equals(""));
+ test(communicator.getProperties().getProperty("TestAdapter0.Endpoints").equals("default"));
first.deactivate();
System.out.println("ok");
}
{
System.out.print("testing servant registration exceptions... ");
+ communicator.getProperties().setProperty("TestAdapter1.Endpoints", "default");
Ice.ObjectAdapter adapter = communicator.createObjectAdapter("TestAdapter1");
Ice.Object obj = new EmptyI();
adapter.add(obj, communicator.stringToIdentity("x"));
@@ -775,6 +786,7 @@ public class AllTests
{
System.out.print("testing servant locator registration exceptions... ");
+ communicator.getProperties().setProperty("TestAdapter2.Endpoints", "default");
Ice.ObjectAdapter adapter = communicator.createObjectAdapter("TestAdapter2");
Ice.ServantLocator loc = new ServantLocatorI();
adapter.addServantLocator(loc, "x");