Merge pull request #10550 from kwoyke/JAVA-4240
JAVA-4240: Add exception's message to the log
This commit is contained in:
commit
71d80d8991
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -34,11 +34,9 @@ public class JavaRMIIntegrationTest {
|
||||||
|
|
||||||
String expectedMessage = "Server Message";
|
String expectedMessage = "Server Message";
|
||||||
assertEquals(responseMessage, expectedMessage);
|
assertEquals(responseMessage, expectedMessage);
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException | NotBoundException e) {
|
||||||
fail("Exception Occurred");
|
fail("Exception Occurred: " + e);
|
||||||
} catch (NotBoundException nb) {
|
};
|
||||||
fail("Exception Occurred");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue