You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwebbeans.apache.org by st...@apache.org on 2023/01/26 14:06:26 UTC

[openwebbeans] branch main updated: OWB-1417 disable broken TCK tests

This is an automated email from the ASF dual-hosted git repository.

struberg pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/openwebbeans.git


The following commit(s) were added to refs/heads/main by this push:
     new b1e45eb67 OWB-1417 disable broken TCK tests
b1e45eb67 is described below

commit b1e45eb67d61fbcbc51aa4f9674f3b889bfdc5a5
Author: Mark Struberg <st...@apache.org>
AuthorDate: Thu Jan 26 15:05:18 2023 +0100

    OWB-1417 disable broken TCK tests
    
    Those tests assume a specific order of interceptors with the same @Priority.
    But this is nowhere defined, not by the Interceptors spec, nor by CDI.
---
 webbeans-tck/standalone-suite.xml | 18 ++++++++++++++++++
 webbeans-tck/testng-dev.xml       |  4 ++--
 2 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/webbeans-tck/standalone-suite.xml b/webbeans-tck/standalone-suite.xml
index 98ac8e10d..27a876734 100644
--- a/webbeans-tck/standalone-suite.xml
+++ b/webbeans-tck/standalone-suite.xml
@@ -60,6 +60,24 @@
 
         <classes>
 
+            <!-- Tests broken in the CDI-4.0 TCK: -->
+
+            <!--
+                Test wrongly assumes a specific ordering although both interceptors have priority 2000 and thus
+                might get invoked in unspecified order.
+            -->
+            <class name="org.jboss.cdi.tck.interceptors.tests.bindings.aroundConstruct.ConstructorInterceptionTest" >
+                <methods>
+                    <exclude name="testMultipleConstructorLevelBinding"/>
+                    <exclude name="testTypeLevelAndConstructorLevelBinding"/>
+                </methods>
+            </class>
+            <class name="org.jboss.cdi.tck.tests.interceptors.definition.InterceptorDefinitionTest" >
+                <methods>
+                    <exclude name="testResolveInterceptorsReturnsOrderedList"/>
+                </methods>
+            </class>
+
             <!-- Tests broken in the CDI-2.0 TCK: -->
 
             <!-- https://issues.jboss.org/projects/CDITCK/issues/CDITCK-576 -->
diff --git a/webbeans-tck/testng-dev.xml b/webbeans-tck/testng-dev.xml
index faf844c3e..2ce4ad018 100644
--- a/webbeans-tck/testng-dev.xml
+++ b/webbeans-tck/testng-dev.xml
@@ -18,9 +18,9 @@
 <suite name="JSR-346-TCK" verbose="2" configfailurepolicy="continue">
   <test name="JSR-346 TCK">
     <classes>
-          <class name="org.jboss.cdi.tck.tests.definition.stereotype.priority.StereotypeWithPriorityTest" >
+          <class name="org.jboss.cdi.tck.tests.interceptors.definition.InterceptorDefinitionTest" >
             <methods>
-              <include name=".*"/>
+              <include name="testResolveInterceptorsReturnsOrderedList"/>
             </methods>
           </class>