fix Sneaky Runnable test
This commit is contained in:
parent
1bbe9196ee
commit
afd142caa0
|
@ -6,12 +6,8 @@ import static junit.framework.TestCase.assertEquals;
|
|||
|
||||
public class SneakyRunnableTest {
|
||||
|
||||
@Test
|
||||
@Test(expected = InterruptedException.class)
|
||||
public void whenCallSneakyRunnableMethod_thenThrowException() {
|
||||
try {
|
||||
new SneakyRunnable().run();
|
||||
} catch (Exception e) {
|
||||
assertEquals(InterruptedException.class, e.getStackTrace());
|
||||
}
|
||||
new SneakyRunnable().run();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue