summaryrefslogtreecommitdiff
path: root/testng7_port.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-08-01 14:00:12 +0000
committerCoprDistGit <infra@openeuler.org>2024-08-01 14:00:12 +0000
commitc14736ed2464fbb1d4db96e823ec758f3575ae7b (patch)
treefd3df15bcde5978fef5c43c8d46add79d69af2c4 /testng7_port.patch
parent771409af823f8b9bb60e420497ed2736723bb256 (diff)
automatic import of bytemanopeneuler24.03_LTSopeneuler23.09
Diffstat (limited to 'testng7_port.patch')
-rw-r--r--testng7_port.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/testng7_port.patch b/testng7_port.patch
new file mode 100644
index 0000000..16e43e9
--- /dev/null
+++ b/testng7_port.patch
@@ -0,0 +1,22 @@
+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;