From ca2755655616eb51b59ab7989ee24e525927ba92 Mon Sep 17 00:00:00 2001 From: Marc Laukien Date: Sun, 18 Apr 2004 14:45:02 +0000 Subject: assertions are now correctly caught --- java/test/Ice/exceptions/Server.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'java/test/Ice/exceptions/Server.java') diff --git a/java/test/Ice/exceptions/Server.java b/java/test/Ice/exceptions/Server.java index b768ecfa37a..ec835514335 100644 --- a/java/test/Ice/exceptions/Server.java +++ b/java/test/Ice/exceptions/Server.java @@ -17,8 +17,15 @@ public class Server private static int run(String[] args, Ice.Communicator communicator) { + // + // For this test, we need a dummy logger, otherwise the + // assertion test will print an error message. + // + communicator.setLogger(new DummyLogger()); + Ice.Properties properties = communicator.getProperties(); - properties.setProperty("Ice.Warn.Dispatch", "0"); + // We don't need to disable warnings, because we have a dummy logger. + //properties.setProperty("Ice.Warn.Dispatch", "0"); properties.setProperty("TestAdapter.Endpoints", "default -p 12345 -t 10000"); Ice.ObjectAdapter adapter = communicator.createObjectAdapter("TestAdapter"); Ice.Object object = new ThrowerI(adapter); -- cgit v1.2.3