|
29 | 29 | import com.google.common.truth.extensions.proto.ProtoSubject; |
30 | 30 | import com.google.errorprone.CompilationTestHelper; |
31 | 31 | import com.google.testing.junit.testparameterinjector.TestParameter; |
32 | | -import com.google.testing.junit.testparameterinjector.TestParameter.TestParameterValuesProvider; |
33 | 32 | import com.google.testing.junit.testparameterinjector.TestParameterInjector; |
| 33 | +import com.google.testing.junit.testparameterinjector.TestParameterValuesProvider; |
34 | 34 | import java.lang.reflect.Method; |
35 | 35 | import java.lang.reflect.Modifier; |
36 | 36 | import org.junit.Test; |
@@ -668,23 +668,23 @@ private static String getOffensiveLine(Method method) { |
668 | 668 | } |
669 | 669 | } |
670 | 670 |
|
671 | | - private static final class SubjectMethods implements TestParameterValuesProvider { |
| 671 | + private static final class SubjectMethods extends TestParameterValuesProvider { |
672 | 672 | @Override |
673 | | - public ImmutableList<Method> provideValues() { |
| 673 | + public ImmutableList<Method> provideValues(Context context) { |
674 | 674 | return getAssertionMethods(Subject.class); |
675 | 675 | } |
676 | 676 | } |
677 | 677 |
|
678 | | - private static final class IterableSubjectMethods implements TestParameterValuesProvider { |
| 678 | + private static final class IterableSubjectMethods extends TestParameterValuesProvider { |
679 | 679 | @Override |
680 | | - public ImmutableList<Method> provideValues() { |
| 680 | + public ImmutableList<Method> provideValues(Context context) { |
681 | 681 | return getAssertionMethods(IterableSubject.class); |
682 | 682 | } |
683 | 683 | } |
684 | 684 |
|
685 | | - private static final class ProtoTruthSubjectMethods implements TestParameterValuesProvider { |
| 685 | + private static final class ProtoTruthSubjectMethods extends TestParameterValuesProvider { |
686 | 686 | @Override |
687 | | - public ImmutableList<Method> provideValues() { |
| 687 | + public ImmutableList<Method> provideValues(Context context) { |
688 | 688 | return getAssertionMethods(ProtoSubject.class); |
689 | 689 | } |
690 | 690 | } |
|
0 commit comments