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