Class TypedArgumentConverter<S, T extends @Nullable Object>

java.lang.Object
org.junit.jupiter.params.converter.TypedArgumentConverter<S,T>
Type Parameters:
S - the type of the source argument to convert
T - the type of the target object to create from the source
All Implemented Interfaces:
ArgumentConverter

@API(status=STABLE, since="5.10") public abstract class TypedArgumentConverter<S, T extends @Nullable Object> extends Object implements ArgumentConverter
TypedArgumentConverter is an abstract base class for ArgumentConverter implementations that always convert objects of a given source type into a given target type.
Since:
5.7
See Also:
  • Constructor Details

    • TypedArgumentConverter

      protected TypedArgumentConverter(Class<S> sourceType, Class<@NonNull T> targetType)
      Create a new TypedArgumentConverter.
      Parameters:
      sourceType - the type of the argument to convert; never null
      targetType - the type of the target object to create from the source; never null
  • Method Details