Java 类org.junit.experimental.theories.Theories 实例源码

项目:sosiefier    文件:TheoryTestUtils.java   
public static Result runTheoryClass(Class<?> testClass) throws InitializationError {
    Runner theoryRunner = new Theories(testClass);
    Request request = Request.runner(theoryRunner);
    return new JUnitCore().run(request);
}
项目:sosiefier    文件:UnsuccessfulWithDataPointFields.java   
@Test
public void theoryClassMethodsShowUp() throws Exception {
    assertThat(new Theories(HasAFailingTheory.class).getDescription()
            .getChildren().size(), is(1));
}
项目:sosiefier    文件:WithParameterSupplier.java   
@Test
public void shouldRejectSuppliersWithUnknownConstructors() throws Exception {
    expected.expect(InitializationError.class);
    new Theories(TestClassUsingSupplierWithUnknownConstructor.class);
}
项目:sosiefier    文件:WithParameterSupplier.java   
@Test
public void shouldRejectSuppliersWithTwoConstructors() throws Exception {
    expected.expect(InitializationError.class);
    new Theories(TestClassUsingSupplierWithTwoConstructors.class);
}
项目:sosiefier    文件:WithParameterSupplier.java   
@Test
public void shouldAcceptSuppliersWithTestClassConstructor() throws Exception {
    new Theories(TestClassUsingSupplierWithTestClassConstructor.class);
}
项目:junit    文件:UnsuccessfulWithDataPointFields.java   
@Test
public void theoryClassMethodsShowUp() throws Exception {
    assertThat(new Theories(HasATheory.class).getDescription()
            .getChildren().size(), is(1));
}
项目:health-and-care-developer-network    文件:UnsuccessfulWithDataPointFields.java   
@Test
public void theoryClassMethodsShowUp() throws Exception {
    assertThat(new Theories(HasATheory.class).getDescription()
            .getChildren().size(), is(1));
}