import junit.framework.TestCase; public class TestInMainThread extends TestCase { public void testException() { // uncaught, causes failure throw new RuntimeException(); } public void testAssertion() { // fails, causes failure assertTrue(false); } }