fix Sneaky Runnable test

This commit is contained in:
Ahmed Tawila 2017-11-16 10:50:25 +02:00
parent 1bbe9196ee
commit afd142caa0
1 changed files with 2 additions and 6 deletions

View File

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