JAVA-4240: Fix catch block

This commit is contained in:
Krzysztof Woyke 2021-03-11 20:58:45 +01:00
parent 47db80077d
commit 6332f7eba4
1 changed files with 2 additions and 4 deletions

View File

@ -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: " + e); fail("Exception Occurred: " + e);
} catch (NotBoundException nb) { };
fail("Exception Occurred: " + e);
}
} }
} }