summaryrefslogtreecommitdiff
path: root/java/test/Ice/exceptions/Server.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/test/Ice/exceptions/Server.java')
-rw-r--r--java/test/Ice/exceptions/Server.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/java/test/Ice/exceptions/Server.java b/java/test/Ice/exceptions/Server.java
index 99157b088b4..539ac3bc304 100644
--- a/java/test/Ice/exceptions/Server.java
+++ b/java/test/Ice/exceptions/Server.java
@@ -26,14 +26,17 @@ public class Server extends test.Util.Application
protected Ice.InitializationData getInitData(Ice.StringSeqHolder argsH)
{
Ice.InitializationData initData = new Ice.InitializationData();
- initData.properties = Ice.Util.createProperties(argsH);
+ //
+ // For this test, we need a dummy logger, otherwise the
+ // assertion test will print an error message.
+ //
initData.logger = new DummyLogger();
+ initData.properties = Ice.Util.createProperties(argsH);
+ initData.properties.setProperty("Ice.Warn.Dispatch", "0");
initData.properties.setProperty("Ice.Package.Test", "test.Ice.exceptions");
initData.properties.setProperty("TestAdapter.Endpoints", "default -p 12010:udp");
initData.properties.setProperty("Ice.MessageSizeMax", "10"); // 10KB max
- // We don't need to disable warnings, because we have a dummy logger.
- // properties.setProperty("Ice.Warn.Dispatch", "0");
return initData;
}