У меня была эта строка кода с использованием TestNG 6.11:
Annotation[] annotations = (Annotation[]) myResult.getMethod().getMethod().getDeclaredAnnotations();
Теперь этот код не компилируется в Maven 7.0.0-Beta1.
Что делать?
Ошибка:
cannot find symbol [ERROR] symbol: method getMethod() [ERROR] location: interface org.testng.ITestNGMethod