use of javax.measure.UnconvertibleException in project unit-api by unitsofmeasurement.
the class ExceptionsTest method testUnconvertibleExceptionWithCause.
@Test(expected = UnconvertibleException.class)
public void testUnconvertibleExceptionWithCause() {
Exception cause = new IllegalArgumentException();
UnconvertibleException e = new UnconvertibleException(cause);
assertEquals(cause, e.getCause());
throw e;
}
Aggregations