Java 类org.junit.experimental.theories.ParametersSuppliedBy 实例源码
项目:sosiefier
文件:Assignments.java
private ParameterSupplier getSupplier(ParameterSignature unassigned)
throws Exception {
ParametersSuppliedBy annotation = unassigned
.findDeepAnnotation(ParametersSuppliedBy.class);
if (annotation != null) {
return buildParameterSupplierFromClass(annotation.value());
} else {
return new AllMembersSupplier(fClass);
}
}
项目:lcm
文件:Assignments.java
public ParameterSupplier getAnnotatedSupplier(ParameterSignature unassigned)
throws InstantiationException, IllegalAccessException {
ParametersSuppliedBy annotation = unassigned
.findDeepAnnotation(ParametersSuppliedBy.class);
if (annotation == null) {
return null;
}
return annotation.value().newInstance();
}
项目:junit
文件:Assignments.java
public ParameterSupplier getAnnotatedSupplier(ParameterSignature unassigned)
throws InstantiationException, IllegalAccessException {
ParametersSuppliedBy annotation = unassigned
.findDeepAnnotation(ParametersSuppliedBy.class);
if (annotation == null) {
return null;
}
return annotation.value().newInstance();
}
项目:org.openntf.domino
文件:Assignments.java
public ParameterSupplier getAnnotatedSupplier(ParameterSignature unassigned)
throws InstantiationException, IllegalAccessException {
ParametersSuppliedBy annotation = unassigned
.findDeepAnnotation(ParametersSuppliedBy.class);
if (annotation == null) {
return null;
}
return annotation.value().newInstance();
}
项目:interview-preparation
文件:ExternalTheoryTest.java
@Theory
public void adds_numbers(@ParametersSuppliedBy(NumberSupplier.class) Number num1, @ParametersSuppliedBy(NumberSupplier.class) Number num2) {
System.out.println(num1 + " and " + num2);
}
项目:sosiefier
文件:WithParameterSupplier.java
@Theory
public void theoryMethod(@ParametersSuppliedBy(SimpleSupplier.class) String param) {
}
项目:sosiefier
文件:WithParameterSupplier.java
@Theory
public void theory(@ParametersSuppliedBy(SupplierWithUnknownConstructor.class) String param) {
}
项目:sosiefier
文件:WithParameterSupplier.java
@Theory
public void theory(@ParametersSuppliedBy(SupplierWithTwoConstructors.class) String param) {
}
项目:sosiefier
文件:WithParameterSupplier.java
@Theory
public void theory(@ParametersSuppliedBy(SupplierWithTestClassConstructor.class) String param) {
}