Java 类org.junit.platform.engine.support.descriptor.EngineDescriptor 实例源码
项目:mastering-junit5
文件:MyCustomEngine.java
@Override
public TestDescriptor discover(EngineDiscoveryRequest discoveryRequest,
UniqueId uniqueId) {
// Discover test(s) and return a TestDescriptor object
TestDescriptor testDescriptor = new EngineDescriptor(uniqueId,
"My test");
return testDescriptor;
}
项目:Mastering-Software-Testing-with-JUnit-5
文件:MyCustomEngine.java
@Override
public TestDescriptor discover(EngineDiscoveryRequest discoveryRequest,
UniqueId uniqueId) {
// Discover test(s) and return a TestDescriptor object
TestDescriptor testDescriptor = new EngineDescriptor(uniqueId,
"My test");
return testDescriptor;
}
项目:junit5-samples
文件:Machine.java
@Override
public TestDescriptor discover(EngineDiscoveryRequest discoveryRequest, UniqueId uniqueId) {
TestDescriptor engine = new EngineDescriptor(uniqueId, getCaption());
for (int i = 0; i < getScoops(discoveryRequest, 5); i++) {
engine.addChild(new Scoop(engine.getUniqueId(), i, Flavor.random()));
}
return engine;
}
项目:junit-pioneer
文件:ExecutionEventConditions.java
public static Condition<ExecutionEvent> engine() {
return new Condition<>(byTestDescriptor(EngineDescriptor.class::isInstance), "is an engine");
}