Fixed failing unit test.
Source of failure was MATH-1340: Expected exception is now wrapped in another exception.
This commit is contained in:
parent
baae2a6f3e
commit
84143c4629
|
@ -80,9 +80,14 @@ public class JDKRandomAdaptorTest {
|
|||
Assert.assertEquals(withoutReseed, withReseed, 0);
|
||||
}
|
||||
|
||||
@Test(expected=MathUnsupportedOperationException.class)
|
||||
@Test
|
||||
public void testSerializeIsNotSupported() {
|
||||
TestUtils.serializeAndRecover(new JDKRandomAdaptor(RandomSource.create(RandomSource.WELL_512_A)));
|
||||
try {
|
||||
TestUtils.serializeAndRecover(new JDKRandomAdaptor(RandomSource.create(RandomSource.WELL_512_A)));
|
||||
} catch (Exception e) {
|
||||
Throwable cause = e.getCause();
|
||||
Assert.assertTrue(cause instanceof MathUnsupportedOperationException);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue