junit.runner.Version Java Examples
The following examples show how to use
junit.runner.Version.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SquidbTestRunner.java From squidb with Apache License 2.0 | 5 votes |
/** * Returns a new {@link RunListener} instance for the given {@param outputFormat}. */ public RunListener newRunListener(OutputFormat outputFormat) { switch (outputFormat) { case JUNIT: out.println("JUnit version " + Version.id()); return new TextListener(out); case GTM_UNIT_TESTING: return new GtmUnitTestingTextListener(); default: throw new IllegalArgumentException("outputFormat"); } }
Example #2
Source File: JUnitTestRunner.java From j2objc with Apache License 2.0 | 5 votes |
/** * Returns a new {@link RunListener} instance for the given {@param outputFormat}. */ public RunListener newRunListener(OutputFormat outputFormat) { switch (outputFormat) { case JUNIT: out.println("JUnit version " + Version.id()); return new TextListener(out); case GTM_UNIT_TESTING: return new GtmUnitTestingTextListener(); default: throw new IllegalArgumentException("outputFormat"); } }
Example #3
Source File: MarathonTestRunner.java From marathonv5 with Apache License 2.0 | 4 votes |
/** * @return the version number of this release */ public String getVersion() { return Version.id(); }
Example #4
Source File: RefCCDATest.java From reference-ccda-validator with BSD 2-Clause "Simplified" License | 4 votes |
@Override @Before public void initializeLogResultsToConsoleValue() { ValidationLogger.logResults = LOG_RESULTS_TO_CONSOLE; println("JUnit version: " + Version.id()); }