Java 类org.junit.experimental.theories.internal.AllMembersSupplier 实例源码

项目:sosiefier    文件:AllMembersSupplierTest.java   
private List<PotentialAssignment> allMemberValuesFor(Class<?> testClass,
        Class<?>... constructorParameterTypes) throws Throwable {
    return new AllMembersSupplier(new TestClass(testClass))
            .getValueSources(ParameterSignature.signatures(
                    testClass.getConstructor(constructorParameterTypes))
                    .get(0));
}
项目:junit    文件:AllMembersSupplierTest.java   
@Test
public void dataPointsAnnotationMeansTreatAsArrayOnly()
        throws SecurityException, NoSuchMethodException {
    List<PotentialAssignment> valueSources = new AllMembersSupplier(
            new TestClass(HasDataPoints.class))
            .getValueSources(ParameterSignature.signatures(
                    HasDataPoints.class.getConstructor(Object.class))
                    .get(0));
    assertThat(valueSources.size(), is(2));
}
项目:health-and-care-developer-network    文件:AllMembersSupplierTest.java   
@Test
public void dataPointsAnnotationMeansTreatAsArrayOnly()
        throws SecurityException, NoSuchMethodException {
    List<PotentialAssignment> valueSources = new AllMembersSupplier(
            new TestClass(HasDataPoints.class))
            .getValueSources(ParameterSignature.signatures(
                    HasDataPoints.class.getConstructor(Object.class))
                    .get(0));
    assertThat(valueSources.size(), is(2));
}