revert sneaky runnable fix attempt

This commit is contained in:
Ahmed Tawila 2017-11-16 11:08:27 +02:00
parent afd142caa0
commit 0ffa8c6c8c
1 changed files with 6 additions and 2 deletions

View File

@ -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());
}
} }
} }