Methods Summary |
---|
public void | testCameraRuntimeException1()
try {
CameraRuntimeException runtimeExc = new CameraRuntimeException(12345);
throw runtimeExc.asChecked();
} catch (CameraAccessException e) {
assertEquals(12345, e.getReason());
assertNull(e.getMessage());
assertNull(e.getCause());
}
|
public void | testCameraRuntimeException2()
try {
CameraRuntimeException runtimeExc = new CameraRuntimeException(12345, "Hello");
throw runtimeExc.asChecked();
} catch (CameraAccessException e) {
assertEquals(12345, e.getReason());
assertEquals("Hello", e.getMessage());
assertNull(e.getCause());
}
|
public void | testCameraRuntimeException3()
Throwable cause = new IllegalStateException("For great justice");
try {
CameraRuntimeException runtimeExc = new CameraRuntimeException(12345, cause);
throw runtimeExc.asChecked();
} catch (CameraAccessException e) {
assertEquals(12345, e.getReason());
assertNull(e.getMessage());
assertEquals(cause, e.getCause());
}
|
public void | testCameraRuntimeException4()
Throwable cause = new IllegalStateException("For great justice");
try {
CameraRuntimeException runtimeExc = new CameraRuntimeException(12345, "Hello", cause);
throw runtimeExc.asChecked();
} catch (CameraAccessException e) {
assertEquals(12345, e.getReason());
assertEquals("Hello", e.getMessage());
assertEquals(cause, e.getCause());
}
|