Fix catch block
@@ -34,11 +34,9 @@ public class JavaRMIIntegrationTest {
String expectedMessage = "Server Message";
assertEquals(responseMessage, expectedMessage);
- } catch (RemoteException e) {
- fail("Exception Occurred: " + e);
- } catch (NotBoundException nb) {
+ } catch (RemoteException | NotBoundException e) {
fail("Exception Occurred: " + e);
- }
+ };
}
}
\ No newline at end of file
