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 {
|
public class SneakyRunnableTest {
|
||||||
|
|
||||||
@Test
|
@Test(expected = InterruptedException.class)
|
||||||
public void whenCallSneakyRunnableMethod_thenThrowException() {
|
public void whenCallSneakyRunnableMethod_thenThrowException() {
|
||||||
try {
|
new SneakyRunnable().run();
|
||||||
new SneakyRunnable().run();
|
|
||||||
} catch (Exception e) {
|
|
||||||
assertEquals(InterruptedException.class, e.getStackTrace());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue