Added exception info to test

This commit is contained in:
nathan 2020-08-13 01:02:08 +02:00
parent f1b7ce2685
commit d9e0ff2e05

View File

@ -80,8 +80,9 @@ class RmiTest : BaseTest() {
var caught = false var caught = false
try { try {
test.throwException() test.throwException()
} catch (ex: UnsupportedOperationException) { } catch (e: UnsupportedOperationException) {
System.err.println("\tExpected exception (exception log should ONLY be on the object impl side).") System.err.println("\tExpected exception (exception log should also be on the object impl side).")
e.printStackTrace()
caught = true caught = true
} }
Assert.assertTrue(caught) Assert.assertTrue(caught)
@ -107,8 +108,9 @@ class RmiTest : BaseTest() {
caught = false caught = false
try { try {
test.throwException() test.throwException()
} catch (ex: IllegalStateException) { } catch (e: IllegalStateException) {
System.err.println("\tExpected exception (exception log should ONLY be on the object impl side).") System.err.println("\tExpected exception (exception log should also be on the object impl side).")
e.printStackTrace()
caught = true caught = true
} }
// exceptions are not caught when async = true! // exceptions are not caught when async = true!