Created
September 24, 2009 22:33
-
-
Save xeolabs/193117 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Finishing current JsUnit testcase as passed. | |
*/ | |
private static void pass() { | |
if (currentTest != null) { | |
runNotifier.fireTestFinished(currentTest); | |
currentTest = null; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Finishing current JsUnit testcase as failed. | |
* | |
* @param details JsUnit provided failure details. | |
*/ | |
private static void fail(String details) { | |
Failure failure = new Failure(currentTest, new RuntimeException(details)); | |
runNotifier.fireTestFailure(failure); | |
currentTest = null; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment