JAVA-4240: Add exception's message to the log
This commit is contained in:
parent
c9bc95a5e2
commit
47db80077d
@ -20,7 +20,7 @@ public class JavaRMIIntegrationTest {
|
|||||||
MessengerServiceImpl server = new MessengerServiceImpl();
|
MessengerServiceImpl server = new MessengerServiceImpl();
|
||||||
server.createStubAndBind();
|
server.createStubAndBind();
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
fail("Exception Occurred");
|
fail("Exception Occurred: " + e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -35,9 +35,9 @@ public class JavaRMIIntegrationTest {
|
|||||||
String expectedMessage = "Server Message";
|
String expectedMessage = "Server Message";
|
||||||
assertEquals(responseMessage, expectedMessage);
|
assertEquals(responseMessage, expectedMessage);
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
fail("Exception Occurred");
|
fail("Exception Occurred: " + e);
|
||||||
} catch (NotBoundException nb) {
|
} catch (NotBoundException nb) {
|
||||||
fail("Exception Occurred");
|
fail("Exception Occurred: " + e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user