本文整理了Java中junit.framework.Test.countTestCases()
方法的一些代码示例,展示了Test.countTestCases()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Test.countTestCases()
方法的具体详情如下:
包路径:junit.framework.Test
类名称:Test
方法名:countTestCases
[英]Counts the number of test cases that will be run by this test.
[中]统计此测试将运行的测试用例数。
代码示例来源:origin: google/j2objc
/**
* Counts the number of test cases that will be run by this test.
*/
public int countTestCases() {
int count = 0;
for (Test each : fTests) {
count += each.countTestCases();
}
return count;
}
代码示例来源:origin: junit-team/junit4
/**
* Counts the number of test cases that will be run by this test.
*/
public int countTestCases() {
int count = 0;
for (Test each : fTests) {
count += each.countTestCases();
}
return count;
}
代码示例来源:origin: junit-team/junit4
public int countTestCases() {
return fTest.countTestCases();
}
代码示例来源:origin: google/j2objc
public int countTestCases() {
return fTest.countTestCases();
}
代码示例来源:origin: junit-team/junit4
/**
* Informs the result that a test will be started.
*/
public void startTest(Test test) {
final int count = test.countTestCases();
synchronized (this) {
fRunTests += count;
}
for (TestListener each : cloneListeners()) {
each.startTest(test);
}
}
代码示例来源:origin: google/j2objc
/**
* Informs the result that a test will be started.
*/
public void startTest(Test test) {
final int count = test.countTestCases();
synchronized (this) {
fRunTests += count;
}
for (TestListener each : cloneListeners()) {
each.startTest(test);
}
}
代码示例来源:origin: camunda/camunda-bpm-platform
/**
* Counts the number of test cases that will be run by this test.
*/
public int countTestCases() {
int count = 0;
for (Test each : fTests) {
count += each.countTestCases();
}
return count;
}
代码示例来源:origin: camunda/camunda-bpm-platform
public int countTestCases() {
return fTest.countTestCases();
}
代码示例来源:origin: camunda/camunda-bpm-platform
/**
* Informs the result that a test will be started.
*/
public void startTest(Test test) {
final int count = test.countTestCases();
synchronized (this) {
fRunTests += count;
}
for (TestListener each : cloneListeners()) {
each.startTest(test);
}
}
代码示例来源:origin: com.google.android.tools/dx
public int countTestCases() {
return fTest.countTestCases();
}
public void run(TestResult result) {
代码示例来源:origin: org.junit/com.springsource.org.junit
/**
* Counts the number of test cases that will be run by this test.
*/
public int countTestCases() {
int count = 0;
for (Test each : fTests) {
count += each.countTestCases();
}
return count;
}
代码示例来源:origin: org.junit/com.springsource.junit
public int countTestCases() {
return fTest.countTestCases();
}
public void run(TestResult result) {
代码示例来源:origin: objectweb-joramtests/joramtests
public int countTestCases()
{
return testcase.countTestCases();
}
代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.junit
/**
* Counts the number of test cases that will be run by this test.
*/
public int countTestCases() {
int count = 0;
for (Test each : fTests) {
count += each.countTestCases();
}
return count;
}
代码示例来源:origin: com.google.android.tools/dx
/**
* Counts the number of test cases that will be run by this test.
*/
public int countTestCases() {
int count= 0;
for (Enumeration e= tests(); e.hasMoreElements(); ) {
Test test= (Test)e.nextElement();
count= count + test.countTestCases();
}
return count;
}
代码示例来源:origin: com.pyx4me/cldcunit
/**
* Counts the number of test cases that will be run by this test.
*/
public int countTestCases() {
int count = 0;
for (Enumeration e = tests(); e.hasMoreElements();) {
Test test = (Test) e.nextElement();
count = count + test.countTestCases();
}
return count;
}
代码示例来源:origin: dragome/dragome-sdk
/**
* Counts the number of test cases that will be run by this test.
*/
public int countTestCases() {
int count= 0;
for (Enumeration e= tests(); e.hasMoreElements(); ) {
Test test= (Test)e.nextElement();
count= count + test.countTestCases();
}
return count;
}
代码示例来源:origin: dragome/dragome-sdk
/**
* Informs the result that a test will be started.
*/
public void startTest(Test test) {
final int count= test.countTestCases();
synchronized(this) {
fRunTests+= count;
}
for (Enumeration e= cloneListeners().elements(); e.hasMoreElements(); ) {
((TestListener)e.nextElement()).startTest(test);
}
}
/**
代码示例来源:origin: org.junit/com.springsource.junit
public void run() {
int total= test.countTestCases();
fProgressIndicator.start(total);
fCounterPanel.setTotal(total);
}
}
代码示例来源:origin: com.oracle/truffle-tck
/**
* Informs the result that a test will be started.
*/
public void startTest(Test test) {
final int count = test.countTestCases();
synchronized (this) {
fRunTests += count;
}
for (TestListener each : cloneListeners()) {
each.startTest(test);
}
}
内容来源于网络,如有侵权,请联系作者删除!