Class MethodBasedInputParameterModelProvider
- java.lang.Object
-
- de.rwth.swc.coffee4j.junit.engine.annotation.test.model.MethodBasedInputParameterModelProvider
-
- All Implemented Interfaces:
AnnotationConsumer<CombinatorialTest>
,MethodBasedProvider<InputParameterModel>
,InputParameterModelProvider
,Consumer<CombinatorialTest>
public class MethodBasedInputParameterModelProvider extends Object implements InputParameterModelProvider, AnnotationConsumer<CombinatorialTest>
A provider loading a class from a method as described inCombinatorialTest
.This is a more or less direct copy of org.junit.jupiter.params.provider.MethodArgumentsProvider from the junit-jupiter-params project.
-
-
Constructor Summary
Constructors Constructor Description MethodBasedInputParameterModelProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(CombinatorialTest combinatorialTest)
InputParameterModel
provide(Method method)
Loads a T based on the method
-
-
-
Method Detail
-
accept
public void accept(CombinatorialTest combinatorialTest)
- Specified by:
accept
in interfaceConsumer<CombinatorialTest>
-
provide
public InputParameterModel provide(Method method)
Description copied from interface:MethodBasedProvider
Loads a T based on the method- Specified by:
provide
in interfaceMethodBasedProvider<InputParameterModel>
- Parameters:
method
- the method from which the information should be loaded- Returns:
- the loaded object
-
-