This is an automated email from the ASF dual-hosted git repository. jungm pushed a commit to branch ee11 in repository https://gitbox.apache.org/repos/asf/tomee-tck.git
commit 504cd99974c94c8dbb06992964f5258e1b0f1126 Author: Markus Jung <[email protected]> AuthorDate: Sat Jul 18 20:28:56 2026 +0200 Share the DI TCK suite construction between both entry points --- .../tomee/tck/standalone/di/DependencyInjectionTckTest.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/runner-standalone/di/src/test/java/org/apache/tomee/tck/standalone/di/DependencyInjectionTckTest.java b/runner-standalone/di/src/test/java/org/apache/tomee/tck/standalone/di/DependencyInjectionTckTest.java index 8188b18..5fda8f8 100644 --- a/runner-standalone/di/src/test/java/org/apache/tomee/tck/standalone/di/DependencyInjectionTckTest.java +++ b/runner-standalone/di/src/test/java/org/apache/tomee/tck/standalone/di/DependencyInjectionTckTest.java @@ -38,15 +38,12 @@ public class DependencyInjectionTckTest { // The JUnit runner loads this class once for discovery and once // for execution; OpenWebBeans allows a single container per class // loader, so reuse the running one. - return suiteFromRunningContainer(); + return suiteFor(CDI.current().select(Car.class).get()); } - final TestSuite suite = new TestSuite("Jakarta Dependency Injection 2.0 TCK"); - suite.addTest(Tck.testsFor(tckCar, false, true)); - return suite; + return suiteFor(tckCar); } - private static Test suiteFromRunningContainer() { - final Car tckCar = CDI.current().select(Car.class).get(); + private static Test suiteFor(final Car tckCar) { final TestSuite suite = new TestSuite("Jakarta Dependency Injection 2.0 TCK"); suite.addTest(Tck.testsFor(tckCar, false, true)); return suite;
