|
28 | 28 | import com.google.common.collect.ImmutableList;
|
29 | 29 | import com.google.common.collect.ImmutableMap;
|
30 | 30 | import com.google.testing.junit.testparameterinjector.junit5.TestParameter;
|
31 |
| -import com.google.testing.junit.testparameterinjector.junit5.TestParameter.TestParameterValuesProvider; |
32 | 31 | import com.google.testing.junit.testparameterinjector.junit5.TestParameterInjectorTest;
|
| 32 | +import com.google.testing.junit.testparameterinjector.junit5.TestParameterValuesProvider; |
33 | 33 | import com.google.testing.junit.testparameterinjector.junit5.TestParameters;
|
34 | 34 | import com.google.testing.junit.testparameterinjector.junit5.TestParameters.TestParametersValues;
|
35 | 35 | import com.google.testing.junit.testparameterinjector.junit5.TestParameters.TestParametersValuesProvider;
|
@@ -310,16 +310,16 @@ ImmutableMap<String, String> expectedTestNameToStringifiedParameters() {
|
310 | 310 | .build();
|
311 | 311 | }
|
312 | 312 |
|
313 |
| - private static final class TestStringProvider implements TestParameterValuesProvider { |
| 313 | + private static final class TestStringProvider extends TestParameterValuesProvider { |
314 | 314 | @Override
|
315 |
| - public List<?> provideValues() { |
| 315 | + public List<?> provideValues(Context context) { |
316 | 316 | return newArrayList("A", "B", null, value("harry").withName("wizard"));
|
317 | 317 | }
|
318 | 318 | }
|
319 | 319 |
|
320 |
| - private static final class CharMatcherProvider implements TestParameterValuesProvider { |
| 320 | + private static final class CharMatcherProvider extends TestParameterValuesProvider { |
321 | 321 | @Override
|
322 |
| - public List<CharMatcher> provideValues() { |
| 322 | + public List<CharMatcher> provideValues(Context context) { |
323 | 323 | return newArrayList(CharMatcher.any(), CharMatcher.ascii(), CharMatcher.whitespace());
|
324 | 324 | }
|
325 | 325 | }
|
@@ -487,9 +487,9 @@ public static class InvalidTest_TestParameter_NonStaticProviderClass {
|
487 | 487 | void test(@TestParameter(valuesProvider = NonStaticProvider.class) int i) {}
|
488 | 488 |
|
489 | 489 | @SuppressWarnings("ClassCanBeStatic")
|
490 |
| - class NonStaticProvider implements TestParameterValuesProvider { |
| 490 | + class NonStaticProvider extends TestParameterValuesProvider { |
491 | 491 | @Override
|
492 |
| - public List<?> provideValues() { |
| 492 | + public List<?> provideValues(Context context) { |
493 | 493 | return ImmutableList.of();
|
494 | 494 | }
|
495 | 495 | }
|
|
0 commit comments