1 2 3 4 5 6 7 8 9 10 11 12 13 14
package com.example.myproject; import org.junit.Assert; import org.junit.Test; /** * A test that always fails. */ public class Fail { @Test public void testFail() { Assert.fail("This is an expected test failure."); } }