Skip to content

Instantly share code, notes, and snippets.

@szalansky
Last active December 12, 2015 00:18
Show Gist options
  • Save szalansky/4682960 to your computer and use it in GitHub Desktop.
Save szalansky/4682960 to your computer and use it in GitHub Desktop.
public void testCaseToString() {
// This test wins the award for twisted snake tail eating while
// writing self tests. And you thought those weird anonymous
// inner classes were bad...
assertEquals("testCaseToString(junit.tests.framework.TestCaseTest)", toString());
}
//
/**
* Counts the number of test cases executed by run(TestResult result).
*/
public int countTestCases() {
return 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment