Class TestParametersValuesProvider
- java.lang.Object
-
- com.google.testing.junit.testparameterinjector.TestParametersValuesProvider
-
- All Implemented Interfaces:
TestParameters.TestParametersValuesProvider
public abstract class TestParametersValuesProvider extends Object implements TestParameters.TestParametersValuesProvider
Abstract class for custom providers of @TestParameters values.This is a replacement for
TestParameters.TestParametersValuesProvider
, which is deprecated. The difference with the former interface is that this class provides aContext
instance when invokingprovideValues(com.google.testing.junit.testparameterinjector.TestParametersValuesProvider.Context)
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TestParametersValuesProvider.Context
An immutable value class that contains extra information about the context of the parameter for which values are being provided.
-
Constructor Summary
Constructors Constructor Description TestParametersValuesProvider()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description List<TestParameters.TestParametersValues>
provideValues()
Deprecated.This method should never be called as it will simply throw anUnsupportedOperationException
.protected abstract List<TestParameters.TestParametersValues>
provideValues(TestParametersValuesProvider.Context context)
-
-
-
Method Detail
-
provideValues
protected abstract List<TestParameters.TestParametersValues> provideValues(TestParametersValuesProvider.Context context) throws Exception
- Throws:
Exception
-
provideValues
@Deprecated public final List<TestParameters.TestParametersValues> provideValues()
Deprecated.This method should never be called as it will simply throw anUnsupportedOperationException
.- Specified by:
provideValues
in interfaceTestParameters.TestParametersValuesProvider
-
-