JAVA-4240: Add exception's message to the log

This commit is contained in:
Krzysztof Woyke
2021-03-11 20:39:47 +01:00
parent aefc96b5e5
commit 5f5e14870e

View File

@@ -20,7 +20,7 @@ public class JavaRMIIntegrationTest {
MessengerServiceImpl server = new MessengerServiceImpl();
server.createStubAndBind();
} catch (RemoteException e) {
fail("Exception Occurred");
fail("Exception Occurred: " + e);
}
}
@@ -35,9 +35,9 @@ public class JavaRMIIntegrationTest {
String expectedMessage = "Server Message";
assertEquals(responseMessage, expectedMessage);
} catch (RemoteException e) {
fail("Exception Occurred");
fail("Exception Occurred: " + e);
} catch (NotBoundException nb) {
fail("Exception Occurred");
fail("Exception Occurred: " + e);
}
}