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 a
Context instance when invoking provideValues(com.google.testing.junit.testparameterinjector.TestParametersValuesProvider.Context).
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTestParametersValuesProvider.ContextAn 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
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)
-
Constructor Details
-
TestParametersValuesProvider
public TestParametersValuesProvider()
-
-
Method Details
-
provideValues
protected abstract List<TestParameters.TestParametersValues> provideValues(TestParametersValuesProvider.Context context) throws Exception- Throws:
Exception
-
provideValues
Deprecated.This method should never be called as it will simply throw anUnsupportedOperationException.- Specified by:
provideValuesin interfaceTestParameters.TestParametersValuesProvider
-