Uses of Interface
guru.mikelue.jdut.DuetConductor
-
Packages that use DuetConductor Package Description guru.mikelue.jdut.annotation Defines annotations could be used to integrate testing framework.guru.mikelue.jdut.junit4 guru.mikelue.jdut.junit5 guru.mikelue.jdut.testng guru.mikelue.jdut.yaml -
-
Uses of DuetConductor in guru.mikelue.jdut.annotation
Methods in guru.mikelue.jdut.annotation that return types with arguments of type DuetConductor Modifier and Type Method Description static Optional<DuetConductor>
AnnotationUtil. buildConductorByConvention(YamlConductorFactory conductorFactory, Class<?> sourceClass)
BuildsDuetConductor
by naming(using convention) of class and method, the file name would be<class_name>.yaml
which should be as same as package of class.
The class must be annotated withJdutResource
.static Optional<DuetConductor>
AnnotationUtil. buildConductorByConvention(YamlConductorFactory conductorFactory, Method sourceMethod)
BuildsDuetConductor
by naming(using convention) of class and method, the file name would be<class_name>-<method_name>.yaml
which should be as same as package of method's class.
The method must be annotated withJdutResource
. -
Uses of DuetConductor in guru.mikelue.jdut.junit4
Methods in guru.mikelue.jdut.junit4 that return DuetConductor Modifier and Type Method Description protected DuetConductor
JdutYamlFactory. buildDuetConductor(Description description)
BuildsDuetConductor
(Optional
) by default convention. -
Uses of DuetConductor in guru.mikelue.jdut.junit5
Methods in guru.mikelue.jdut.junit5 that return DuetConductor Modifier and Type Method Description protected DuetConductor
JdutYamlFactory. buildDuetConductor(org.junit.jupiter.api.extension.ExtensionContext context, JdutYamlFactory.Event event)
Builds theDuetConductor
by default convention(JdutYamlFactory.defaultBuilderOfConductorConfig(org.junit.jupiter.api.extension.ExtensionContext)
). -
Uses of DuetConductor in guru.mikelue.jdut.testng
Methods in guru.mikelue.jdut.testng that return types with arguments of type DuetConductor Modifier and Type Method Description protected Optional<DuetConductor>
IInvokedMethodYamlFactoryListener. buildDuetConductor(IAttributes attributes)
Builds the conductor from data sourceITestResult.getTestContext()
of attributes(asITestResult
).
This method would build conductor only for testing method withJdutResource
annotation.protected Optional<DuetConductor>
ISuiteYamlFactoryListener. buildDuetConductor(IAttributes attributes)
Builds the conductor from data source inISuite
.protected Optional<DuetConductor>
ITestContextYamlFactoryListener. buildDuetConductor(IAttributes attributes)
Builds the conductor from data source inITestContext
.
This method usesITestContext.getName()
.yaml as file name of data conduction.protected abstract Optional<DuetConductor>
YamlFactoryListenerBase. buildDuetConductor(IAttributes attributes)
BuildsDuetConductor
(asOptional
), client should implements this method. -
Uses of DuetConductor in guru.mikelue.jdut.yaml
Methods in guru.mikelue.jdut.yaml that return DuetConductor Modifier and Type Method Description DuetConductor
YamlConductorFactory. conductResource(String yamlResourceName)
Builds conductor by resource of YAML.DuetConductor
YamlConductorFactory. conductResource(String yamlResourceName, Consumer<ConductorConfig.Builder> builderConsumer)
Builds conductor by resource of YAML.DuetConductor
YamlConductorFactory. conductYaml(Reader yamlReader)
Builds conductor by reader of YAML.
This method won't close the reader object.DuetConductor
YamlConductorFactory. conductYaml(Reader yamlReader, Consumer<ConductorConfig.Builder> builderConsumer)
Builds conductor by reader of YAML.
-