File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
dumper/app/src/test/java/com/google/edwmigration/dumper/application/dumper Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 88import org .junit .Test ;
99import org .slf4j .Logger ;
1010import org .slf4j .LoggerFactory ;
11+ import org .springframework .core .annotation .AnnotationUtils ;
1112
1213public class AssessmentFlagUsageTest {
1314 private static final Logger logger = LoggerFactory .getLogger (AssessmentFlagUsageTest .class );
@@ -16,8 +17,8 @@ public class AssessmentFlagUsageTest {
1617 public void assessmentFlagIsExplicitlySpecified () throws Exception {
1718 ImmutableCollection <Connector > connectors = ConnectorRepository .getInstance ().getAllConnectors ();
1819 for (Connector connector : connectors ) {
19- RespectsArgumentAssessment assessment = connector .getClass ()
20- . getDeclaredAnnotation ( RespectsArgumentAssessment .class );
20+ RespectsArgumentAssessment assessment = AnnotationUtils . findAnnotation ( connector .getClass (),
21+ RespectsArgumentAssessment .class );
2122 if (assessment != null ) {
2223 assertThrows (
2324 Exception .class ,
You can’t perform that action at this time.
0 commit comments