本文整理了Java中com.pholser.junit.quickcheck.generator.Generator.provide()
方法的一些代码示例,展示了Generator.provide()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Generator.provide()
方法的具体详情如下:
包路径:com.pholser.junit.quickcheck.generator.Generator
类名称:Generator
方法名:provide
[英]Supplies the available generators to this one.
This is intended for use only by junit-quickcheck itself, and not by creators of custom generators.
[中]为这个提供可用的发电机。
这仅适用于junit quickcheck本身,而不适用于自定义生成器的创建者。
代码示例来源:origin: pholser/junit-quickcheck
@Override public void provide(Generators provided) {
super.provide(provided);
component.provide(provided);
}
代码示例来源:origin: pholser/junit-quickcheck
@Override public void provide(Generators provided) {
super.provide(provided);
for (Generator<?> each : components)
each.provide(provided);
}
代码示例来源:origin: pholser/junit-quickcheck
@Override
public void provide(Generators provided) {
delegate.provide(provided);
}
代码示例来源:origin: pholser/junit-quickcheck
@Override public void provide(Generators provided) {
super.provide(provided);
for (Weighted<Generator<?>> each : composed)
each.item.provide(provided);
}
代码示例来源:origin: pholser/junit-quickcheck
@Override public void provide(Generators provided) {
super.provide(provided);
parameterGenerators.clear();
for (Parameter each : parameters)
parameterGenerators.add(gen().parameter(each));
}
代码示例来源:origin: pholser/junit-quickcheck
@Override public void provide(Generators provided) {
super.provide(provided);
fieldGenerators.clear();
for (Field each : fields)
fieldGenerators.add(gen().field(each));
}
代码示例来源:origin: pholser/junit-quickcheck
@Override public final <T extends Generator<?>> T make(
Class<T> genType,
Generator<?>... components) {
T generator = instantiate(genType);
generator.provide(this);
generator.configure(genType);
generator.addComponentGenerators(asList(components));
return generator;
}
代码示例来源:origin: com.pholser/junit-quickcheck-core
@Override public void provide(Generators provided) {
super.provide(provided);
component.provide(provided);
}
代码示例来源:origin: com.pholser/junit-quickcheck-core
@Override public void provide(Generators provided) {
super.provide(provided);
for (Weighted<Generator<?>> each : composed)
each.item.provide(provided);
}
代码示例来源:origin: com.pholser/junit-quickcheck-core
@Override public void provide(Generators provided) {
super.provide(provided);
for (Generator<?> each : components)
each.provide(provided);
}
代码示例来源:origin: pholser/junit-quickcheck
public Generator<?> produceGenerator(ParameterTypeContext parameter) {
Generator<?> generator = generatorFor(parameter);
if (!isPrimitiveType(parameter.annotatedType().getType()) && hasNullableAnnotation(parameter.annotatedElement()))
generator = new NullableGenerator<>(generator);
generator.provide(this);
generator.configure(parameter.annotatedType());
if (parameter.topLevel())
generator.configure(parameter.annotatedElement());
return generator;
}
代码示例来源:origin: com.pholser/junit-quickcheck-core
@Override public void provide(Generators provided) {
super.provide(provided);
fieldGenerators.clear();
for (Field each : fields)
fieldGenerators.add(gen().field(each));
}
代码示例来源:origin: com.pholser/junit-quickcheck-core
@Override public void provide(Generators provided) {
super.provide(provided);
parameterGenerators.clear();
for (Parameter each : parameters)
parameterGenerators.add(gen().parameter(each));
}
代码示例来源:origin: com.pholser/junit-quickcheck-core
@Override public final <T extends Generator<?>> T make(
Class<T> genType,
Generator<?>... components) {
T generator = instantiate(genType);
generator.provide(this);
generator.configure(genType);
generator.addComponentGenerators(asList(components));
return generator;
}
代码示例来源:origin: edu.berkeley.cs.jqf/jqf-fuzz
private Generator<?> produceGenerator(ParameterTypeContext parameter) {
Generator<?> generator = generatorRepository.generatorFor(parameter);
generator.provide(generatorRepository);
generator.configure(parameter.annotatedType());
return generator;
}
}
代码示例来源:origin: rohanpadhye/jqf
private Generator<?> produceGenerator(ParameterTypeContext parameter) {
Generator<?> generator = generatorRepository.generatorFor(parameter);
generator.provide(generatorRepository);
generator.configure(parameter.annotatedType());
return generator;
}
}
代码示例来源:origin: com.pholser/junit-quickcheck-core
public Generator<?> produceGenerator(ParameterTypeContext parameter) {
Generator<?> generator = generatorFor(parameter);
generator.provide(this);
generator.configure(parameter.annotatedType());
if (parameter.topLevel())
generator.configure(parameter.annotatedElement());
return generator;
}
内容来源于网络,如有侵权,请联系作者删除!