本文整理了Java中junit.framework.TestCase.run()
方法的一些代码示例,展示了TestCase.run()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TestCase.run()
方法的具体详情如下:
包路径:junit.framework.TestCase
类名称:TestCase
方法名:run
[英]A convenience method to run this test, collecting the results with a default TestResult object.
[中]运行此测试的一种方便方法,使用默认的TestResult对象收集结果。
代码示例来源:origin: junit-team/junit4
/**
* A convenience method to run this test, collecting the results with a
* default TestResult object.
*
* @see TestResult
*/
public TestResult run() {
TestResult result = createResult();
run(result);
return result;
}
代码示例来源:origin: google/j2objc
/**
* A convenience method to run this test, collecting the results with a
* default TestResult object.
*
* @see TestResult
*/
public TestResult run() {
TestResult result = createResult();
run(result);
return result;
}
代码示例来源:origin: camunda/camunda-bpm-platform
/**
* A convenience method to run this test, collecting the results with a
* default TestResult object.
*
* @see TestResult
*/
public TestResult run() {
TestResult result = createResult();
run(result);
return result;
}
代码示例来源:origin: geotools/geotools
/** Override which checks if the fixture is available. If not the test is not executed. */
@Override
public void run(TestResult result) {
if (checkAvailable()) {
super.run(result);
}
}
代码示例来源:origin: com.github.albfernandez.test-jsf/jsf-test-stage
/**
* Override run so we can squirrel away the test result.
*
*/
@Override
public void run(final TestResult result) {
testResult = result;
super.run(result);
testResult = null;
}
代码示例来源:origin: org.jboss.test-jsf/jsf-test-stage
/**
* Override run so we can squirrel away the test result.
*
*/
@Override
public void run(final TestResult result) {
testResult = result;
super.run(result);
testResult = null;
}
代码示例来源:origin: com.google.android.tools/dx
/**
* A convenience method to run this test, collecting the results with a
* default TestResult object.
*
* @see TestResult
*/
public TestResult run() {
TestResult result= createResult();
run(result);
return result;
}
/**
代码示例来源:origin: com.oracle/truffle-tck
/**
* A convenience method to run this test, collecting the results with a
* default TestResult object.
*
* @see TestResult
*/
public TestResult run() {
TestResult result = createResult();
run(result);
return result;
}
代码示例来源:origin: dragome/dragome-sdk
/**
* A convenience method to run this test, collecting the results with a
* default TestResult object.
*
* @see TestResult
*/
public TestResult run()
{
TestResult result= createResult();
run(result);
return result;
}
代码示例来源:origin: org.junit/com.springsource.org.junit
/**
* A convenience method to run this test, collecting the results with a
* default TestResult object.
*
* @see TestResult
*/
public TestResult run() {
TestResult result = createResult();
run(result);
return result;
}
代码示例来源:origin: org.junit/com.springsource.junit
/**
* A convenience method to run this test, collecting the results with a
* default TestResult object.
*
* @see TestResult
*/
public TestResult run() {
TestResult result= createResult();
run(result);
return result;
}
/**
代码示例来源:origin: org.geotools/gt-sample-data
/**
* Override which checks if the fixture is available. If not the test is not
* executed.
*/
@Override
public void run(TestResult result) {
if (checkAvailable()) {
super.run(result);
}
}
代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded
/**
* A convenience method to run this test, collecting the results with a
* default TestResult object.
*
* @see TestResult
*/
public TestResult run() {
TestResult result = createResult();
run(result);
return result;
}
代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.junit
/**
* A convenience method to run this test, collecting the results with a
* default TestResult object.
*
* @see TestResult
*/
public TestResult run() {
TestResult result = createResult();
run(result);
return result;
}
代码示例来源:origin: com.pyx4me/cldcunit
/**
* A convenience method to run this test, collecting the results with a default TestResult object.
*
* @see TestResult
*/
public TestResult run() {
TestResult result = createResult();
run(result);
return result;
}
代码示例来源:origin: dragome/dragome-sdk
/**
* A convenience method to run this test, collecting the results with a
* default TestResult object.
*
* @see TestResult
*/
public TestResult run() {
TestResult result= createResult();
run(result);
return result;
}
/**
代码示例来源:origin: sebastianbenz/Jnario
public void run(TestResult result) {
delegate.run(new DelegatingTestResult(result, this));
}
代码示例来源:origin: org.astrogrid/astrogrid-common
/**
* overridden - only runs a test if this optional test case is enabled.
*/
public void run(TestResult tr) {
if (this.isDisabled()) {
tr.startTest(this);
System.out.println("Optional test " + this.getClass().getName() + "#" + this.getName() + " is disabled - Skipping..");
tr.endTest(this);
} else {
super.run(tr);
}
}
代码示例来源:origin: org.geoserver.extension/ogr
@Override
public void run(TestResult result) {
if (!Ogr2OgrTestUtil.isOgrAvailable())
System.out.println("Skipping ogr2ogr format tests, ogr2ogr could not be found, "
+ getName());
else
super.run(result);
}
代码示例来源:origin: org.geoserver.extension/ogr
@Override
public void run(TestResult result) {
if (!Ogr2OgrTestUtil.isOgrAvailable())
System.out.println("Skipping ogr2ogr wrapper tests, ogr2ogr could not be found, " + getName());
else
super.run(result);
}
内容来源于网络,如有侵权,请联系作者删除!