Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37433627
en ru br
Репозитории ALT
S:4.0.16-alt1_7jpp11
www.altlinux.org/Changes

Группа :: Разработка/Java
Пакет: byteman

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: testng7_port.patch
Скачать


diff --git a/byteman-4.0.15/contrib/bmunit/src/org/jboss/byteman/contrib/bmunit/BMNGListener.java b/byteman-4.0.15/contrib/bmunit/src/org/jboss/byteman/contrib/bmunit/BMNGListener.java
index 2f784bc..9e4fec9 100644
--- a/byteman-4.0.15/contrib/bmunit/src/org/jboss/byteman/contrib/bmunit/BMNGListener.java
+++ b/byteman-4.0.15/contrib/bmunit/src/org/jboss/byteman/contrib/bmunit/BMNGListener.java
@@ -61,7 +61,7 @@ public class BMNGListener extends BMNGAbstractRunner implements IInvokedMethodLi
     }
 
     public void beforeInvocation(IInvokedMethod method, ITestResult testResult) {
-        Method javaMethod = method.getTestMethod().getMethod();
+        Method javaMethod = method.getTestMethod().getConstructorOrMethod().getMethod();
         Class clazz = javaMethod.getDeclaringClass();
         if (!checkBMNGListener(clazz)) {
             return;
@@ -81,7 +81,7 @@ public class BMNGListener extends BMNGAbstractRunner implements IInvokedMethodLi
     }
 
     public void afterInvocation(IInvokedMethod method, ITestResult testResult) {
-        Method javaMethod = method.getTestMethod().getMethod();
+        Method javaMethod = method.getTestMethod().getConstructorOrMethod().getMethod();
         Class clazz = javaMethod.getDeclaringClass();
         if (!checkBMNGListener(clazz)) {
             return;
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin