本文整理汇总了Java中org.junit.runners.AllTests类的典型用法代码示例。如果您正苦于以下问题:Java AllTests类的具体用法?Java AllTests怎么用?Java AllTests使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
AllTests类属于org.junit.runners包,在下文中一共展示了AllTests类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: suite
import org.junit.runners.AllTests; //导入依赖的package包/类
static public Test suite() {
return junit.tests.AllTests.suite();
}
示例2: correctTestCount
import org.junit.runners.AllTests; //导入依赖的package包/类
@org.junit.Test
public void correctTestCount() throws Throwable {
AllTests tests = new AllTests(All.class);
assertEquals(1, tests.testCount());
}
示例3: someUsefulDescription
import org.junit.runners.AllTests; //导入依赖的package包/类
@org.junit.Test
public void someUsefulDescription() throws Throwable {
AllTests tests = new AllTests(All.class);
assertThat(tests.getDescription().toString(), containsString("OneTest"));
}
示例4: correctTestCountAdapted
import org.junit.runners.AllTests; //导入依赖的package包/类
@org.junit.Test
public void correctTestCountAdapted() throws Throwable {
AllTests tests = new AllTests(AllJUnit4.class);
assertEquals(1, tests.testCount());
}
示例5: exceptionThrownWhenSuiteIsBad
import org.junit.runners.AllTests; //导入依赖的package包/类
@org.junit.Test(expected = RuntimeException.class)
public void exceptionThrownWhenSuiteIsBad() throws Throwable {
new AllTests(BadSuiteMethod.class);
}