From d9e0ff2e05ced47545e92a4a227ab45be4cef7bb Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 13 Aug 2020 01:02:08 +0200 Subject: [PATCH] Added exception info to test --- test/dorkboxTest/network/rmi/RmiTest.kt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/test/dorkboxTest/network/rmi/RmiTest.kt b/test/dorkboxTest/network/rmi/RmiTest.kt index b52a2f9c..4c3885f8 100644 --- a/test/dorkboxTest/network/rmi/RmiTest.kt +++ b/test/dorkboxTest/network/rmi/RmiTest.kt @@ -80,8 +80,9 @@ class RmiTest : BaseTest() { var caught = false try { test.throwException() - } catch (ex: UnsupportedOperationException) { - System.err.println("\tExpected exception (exception log should ONLY be on the object impl side).") + } catch (e: UnsupportedOperationException) { + System.err.println("\tExpected exception (exception log should also be on the object impl side).") + e.printStackTrace() caught = true } Assert.assertTrue(caught) @@ -107,8 +108,9 @@ class RmiTest : BaseTest() { caught = false try { test.throwException() - } catch (ex: IllegalStateException) { - System.err.println("\tExpected exception (exception log should ONLY be on the object impl side).") + } catch (e: IllegalStateException) { + System.err.println("\tExpected exception (exception log should also be on the object impl side).") + e.printStackTrace() caught = true } // exceptions are not caught when async = true!