Skip to content

Instantly share code, notes, and snippets.

@brianjriddle
Created November 24, 2010 12:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brianjriddle/713553 to your computer and use it in GitHub Desktop.
Save brianjriddle/713553 to your computer and use it in GitHub Desktop.
test:
[junit] Testsuite: OneFailsOnePasses
[junit] Tests run: 2, Failures: 1, Errors: 0, Time elapsed: 0.283 sec
[junit]
[junit] Testcase: testItFails(OneFailsOnePasses): FAILED
[junit]
[junit] junit.framework.AssertionFailedError:
[junit] at OneFailsOnePasses.testItFails(OneFailsOnePasses.java:9)
[junit]
[junit]
import org.junit.*;
import static org.junit.Assert.*;
public class OneFailsOnePasses {
@Test
public void testItFails() {
fail();
}
@Test
public void testItPasses() {
assertTrue(true);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment