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();
|
||||
server.createStubAndBind();
|
||||
} catch (RemoteException e) {
|
||||
fail("Exception Occurred");
|
||||
fail("Exception Occurred: " + e);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -34,11 +34,9 @@ public class JavaRMIIntegrationTest {
|
|||
|
||||
String expectedMessage = "Server Message";
|
||||
assertEquals(responseMessage, expectedMessage);
|
||||
} catch (RemoteException e) {
|
||||
fail("Exception Occurred");
|
||||
} catch (NotBoundException nb) {
|
||||
fail("Exception Occurred");
|
||||
}
|
||||
} catch (RemoteException | NotBoundException e) {
|
||||
fail("Exception Occurred: " + e);
|
||||
};
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue