@Test public void testRemoteYarnExceptionDerivativeUnwrapping() { Class<? extends Throwable> exception = YarnTestException.class; verifyRemoteExceptionUnwrapping(exception, exception.getName()); }
@Test public void testRemoteRuntimeExceptionUnwrapping() { Class<? extends Throwable> exception = NullPointerException.class; verifyRemoteExceptionUnwrapping(exception, exception.getName()); }
@Test public void testUnexpectedRemoteExceptionUnwrapping() { // Non IOException, YarnException thrown by the remote side. Class<? extends Throwable> exception = Exception.class; verifyRemoteExceptionUnwrapping(RemoteException.class, exception.getName()); }
@Test public void testRemoteIOExceptionUnwrapping() { Class<? extends Throwable> exception = IOException.class; verifyRemoteExceptionUnwrapping(exception, exception.getName()); }
@Test public void testUnexpectedRemoteExceptionUnwrapping() { // Non IOException, YarnException thrown by the remote side. Class<? extends Throwable> exception = Exception.class; verifyRemoteExceptionUnwrapping(RemoteException.class, exception.getName()); }
@Test public void testRemoteYarnExceptionWithoutStringConstructor() { // Derivatives of YarnException should always define a string constructor. Class<? extends Throwable> exception = YarnTestExceptionNoConstructor.class; verifyRemoteExceptionUnwrapping(RemoteException.class, exception.getName()); }
@Test public void testRemoteRuntimeExceptionUnwrapping() { Class<? extends Throwable> exception = NullPointerException.class; verifyRemoteExceptionUnwrapping(exception, exception.getName()); }
@Test public void testUnknownExceptionUnwrapping() { Class<? extends Throwable> exception = YarnException.class; String className = "UnknownException.class"; verifyRemoteExceptionUnwrapping(exception, className); }
@Test public void testRemoteIOExceptionDerivativeUnwrapping() { // Test IOException sub-class Class<? extends Throwable> exception = FileNotFoundException.class; verifyRemoteExceptionUnwrapping(exception, exception.getName()); }
@Test public void testUnknownExceptionUnwrapping() { Class<? extends Throwable> exception = YarnException.class; String className = "UnknownException.class"; verifyRemoteExceptionUnwrapping(exception, className); }
@Test public void testRemoteIOExceptionUnwrapping() { Class<? extends Throwable> exception = IOException.class; verifyRemoteExceptionUnwrapping(exception, exception.getName()); }
@Test public void testRemoteYarnExceptionUnwrapping() { Class<? extends Throwable> exception = YarnException.class; verifyRemoteExceptionUnwrapping(exception, exception.getName()); }
@Test public void testRemoteYarnExceptionWithoutStringConstructor() { // Derivatives of YarnException should always define a string constructor. Class<? extends Throwable> exception = YarnTestExceptionNoConstructor.class; verifyRemoteExceptionUnwrapping(RemoteException.class, exception.getName()); }
@Test public void testRemoteIOExceptionUnwrapping() { Class<? extends Throwable> exception = IOException.class; verifyRemoteExceptionUnwrapping(exception, exception.getName()); }
@Test public void testRemoteIOExceptionDerivativeUnwrapping() { // Test IOException sub-class Class<? extends Throwable> exception = FileNotFoundException.class; verifyRemoteExceptionUnwrapping(exception, exception.getName()); }
@Test public void testRemoteYarnExceptionUnwrapping() { Class<? extends Throwable> exception = YarnException.class; verifyRemoteExceptionUnwrapping(exception, exception.getName()); }
@Test public void testUnknownExceptionUnwrapping() { Class<? extends Throwable> exception = YarnException.class; String className = "UnknownException.class"; verifyRemoteExceptionUnwrapping(exception, className); }
@Test public void testUnexpectedRemoteExceptionUnwrapping() { // Non IOException, YarnException thrown by the remote side. Class<? extends Throwable> exception = Exception.class; verifyRemoteExceptionUnwrapping(RemoteException.class, exception.getName()); }
@Test public void testRemoteYarnExceptionDerivativeUnwrapping() { Class<? extends Throwable> exception = YarnTestException.class; verifyRemoteExceptionUnwrapping(exception, exception.getName()); }
@Test public void testRemoteRuntimeExceptionUnwrapping() { Class<? extends Throwable> exception = NullPointerException.class; verifyRemoteExceptionUnwrapping(exception, exception.getName()); }