作者:路很长别太狂_297 | 来源:互联网 | 2023-09-07 13:15
本文整理了Java中org.junit.experimental.theories.DataPoint.value()
方法的一些代码示例,展示了DataPoint.value()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DataPoint.value()
方法的具体详情如下:
包路径:org.junit.experimental.theories.DataPoint
类名称:DataPoint
方法名:value
DataPoint.value介绍
暂无
代码示例
代码示例来源:origin: junit-team/junit4
@Override
protected Collection getSingleDataPointFields(ParameterSignature sig) {
Collection fields = super.getSingleDataPointFields(sig);
String requestedName = sig.getAnnotation(FromDataPoints.class).value();
List fieldsWithMatchingNames = new ArrayList();
for (Field field : fields) {
String[] fieldNames = field.getAnnotation(DataPoint.class).value();
if (Arrays.asList(fieldNames).contains(requestedName)) {
fieldsWithMatchingNames.add(field);
}
}
return fieldsWithMatchingNames;
}
代码示例来源:origin: junit-team/junit4
@Override
protected Collection getSingleDataPointMethods(ParameterSignature sig) {
Collection methods = super.getSingleDataPointMethods(sig);
String requestedName = sig.getAnnotation(FromDataPoints.class).value();
List methodsWithMatchingNames = new ArrayList();
for (FrameworkMethod method : methods) {
String[] methodNames = method.getAnnotation(DataPoint.class).value();
if (Arrays.asList(methodNames).contains(requestedName)) {
methodsWithMatchingNames.add(method);
}
}
return methodsWithMatchingNames;
}
代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.junit
@Override
protected Collection getSingleDataPointFields(ParameterSignature sig) {
Collection fields = super.getSingleDataPointFields(sig);
String requestedName = sig.getAnnotation(FromDataPoints.class).value();
List fieldsWithMatchingNames = new ArrayList();
for (Field field : fields) {
String[] fieldNames = field.getAnnotation(DataPoint.class).value();
if (Arrays.asList(fieldNames).contains(requestedName)) {
fieldsWithMatchingNames.add(field);
}
}
return fieldsWithMatchingNames;
}
代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded
@Override
protected Collection getSingleDataPointFields(ParameterSignature sig) {
Collection fields = super.getSingleDataPointFields(sig);
String requestedName = sig.getAnnotation(FromDataPoints.class).value();
List fieldsWithMatchingNames = new ArrayList();
for (Field field : fields) {
String[] fieldNames = field.getAnnotation(DataPoint.class).value();
if (Arrays.asList(fieldNames).contains(requestedName)) {
fieldsWithMatchingNames.add(field);
}
}
return fieldsWithMatchingNames;
}
代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded
@Override
protected Collection getSingleDataPointMethods(ParameterSignature sig) {
Collection methods = super.getSingleDataPointMethods(sig);
String requestedName = sig.getAnnotation(FromDataPoints.class).value();
List methodsWithMatchingNames = new ArrayList();
for (FrameworkMethod method : methods) {
String[] methodNames = method.getAnnotation(DataPoint.class).value();
if (Arrays.asList(methodNames).contains(requestedName)) {
methodsWithMatchingNames.add(method);
}
}
return methodsWithMatchingNames;
}
代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.junit
@Override
protected Collection getSingleDataPointMethods(ParameterSignature sig) {
Collection methods = super.getSingleDataPointMethods(sig);
String requestedName = sig.getAnnotation(FromDataPoints.class).value();
List methodsWithMatchingNames = new ArrayList();
for (FrameworkMethod method : methods) {
String[] methodNames = method.getAnnotation(DataPoint.class).value();
if (Arrays.asList(methodNames).contains(requestedName)) {
methodsWithMatchingNames.add(method);
}
}
return methodsWithMatchingNames;
}