java类org.junit.runners.AllTests的实例源码

OldTests.java 文件源码 项目:sosiefier 阅读 41 收藏 0 点赞 0 评论 0
static public Test suite() {
    return junit.tests.AllTests.suite();
}
AllTestsTest.java 文件源码 项目:sosiefier 阅读 42 收藏 0 点赞 0 评论 0
@org.junit.Test
public void correctTestCount() throws Throwable {
    AllTests tests = new AllTests(All.class);
    assertEquals(1, tests.testCount());
}
AllTestsTest.java 文件源码 项目:sosiefier 阅读 36 收藏 0 点赞 0 评论 0
@org.junit.Test
public void someUsefulDescription() throws Throwable {
    AllTests tests = new AllTests(All.class);
    assertThat(tests.getDescription().toString(), containsString("OneTest"));
}
AllTestsTest.java 文件源码 项目:sosiefier 阅读 36 收藏 0 点赞 0 评论 0
@org.junit.Test
public void correctTestCountAdapted() throws Throwable {
    AllTests tests = new AllTests(AllJUnit4.class);
    assertEquals(1, tests.testCount());
}
AllTestsTest.java 文件源码 项目:sosiefier 阅读 33 收藏 0 点赞 0 评论 0
@org.junit.Test(expected = RuntimeException.class)
public void exceptionThrownWhenSuiteIsBad() throws Throwable {
    new AllTests(BadSuiteMethod.class);
}
OldTests.java 文件源码 项目:junit 阅读 33 收藏 0 点赞 0 评论 0
static public Test suite() {
    return junit.tests.AllTests.suite();
}
AllTestsTest.java 文件源码 项目:junit 阅读 35 收藏 0 点赞 0 评论 0
@org.junit.Test
public void correctTestCount() throws Throwable {
    AllTests tests = new AllTests(All.class);
    assertEquals(1, tests.testCount());
}
AllTestsTest.java 文件源码 项目:junit 阅读 45 收藏 0 点赞 0 评论 0
@org.junit.Test
public void someUsefulDescription() throws Throwable {
    AllTests tests = new AllTests(All.class);
    assertThat(tests.getDescription().toString(), containsString("OneTest"));
}
AllTestsTest.java 文件源码 项目:junit 阅读 38 收藏 0 点赞 0 评论 0
@org.junit.Test
public void correctTestCountAdapted() throws Throwable {
    AllTests tests = new AllTests(AllJUnit4.class);
    assertEquals(1, tests.testCount());
}
AllTestsTest.java 文件源码 项目:junit 阅读 36 收藏 0 点赞 0 评论 0
@org.junit.Test(expected = RuntimeException.class)
public void exceptionThrownWhenSuiteIsBad() throws Throwable {
    new AllTests(BadSuiteMethod.class);
}
OldTests.java 文件源码 项目:health-and-care-developer-network 阅读 33 收藏 0 点赞 0 评论 0
static public Test suite() {
    return junit.tests.AllTests.suite();
}
AllTestsTest.java 文件源码 项目:health-and-care-developer-network 阅读 39 收藏 0 点赞 0 评论 0
@org.junit.Test
public void correctTestCount() throws Throwable {
    AllTests tests = new AllTests(All.class);
    assertEquals(1, tests.testCount());
}
AllTestsTest.java 文件源码 项目:health-and-care-developer-network 阅读 32 收藏 0 点赞 0 评论 0
@org.junit.Test
public void someUsefulDescription() throws Throwable {
    AllTests tests = new AllTests(All.class);
    assertThat(tests.getDescription().toString(), containsString("OneTest"));
}
AllTestsTest.java 文件源码 项目:health-and-care-developer-network 阅读 34 收藏 0 点赞 0 评论 0
@org.junit.Test
public void correctTestCountAdapted() throws Throwable {
    AllTests tests = new AllTests(AllJUnit4.class);
    assertEquals(1, tests.testCount());
}
AllTestsTest.java 文件源码 项目:health-and-care-developer-network 阅读 35 收藏 0 点赞 0 评论 0
@org.junit.Test(expected = RuntimeException.class)
public void exceptionThrownWhenSuiteIsBad() throws Throwable {
    new AllTests(BadSuiteMethod.class);
}


问题


面经


文章

微信
公众号

扫码关注公众号