From 14a762a7ac22e4abe2b46a461830901b7de93be9 Mon Sep 17 00:00:00 2001 From: Artem Golovko Date: Fri, 17 May 2024 11:19:18 +0100 Subject: [PATCH] Issue #11803 - support testng with maven-surefire-plugin --- jetty-core/jetty-io/pom.xml | 16 ++++++++++++++++ .../io/content/ContentSourcePublisherTest.java | 2 ++ 2 files changed, 18 insertions(+) diff --git a/jetty-core/jetty-io/pom.xml b/jetty-core/jetty-io/pom.xml index 749f45a11d9b..bb1d1a86c5fa 100644 --- a/jetty-core/jetty-io/pom.xml +++ b/jetty-core/jetty-io/pom.xml @@ -55,6 +55,22 @@ @{argLine} ${jetty.surefire.argLine} --add-reads org.eclipse.jetty.io=org.eclipse.jetty.logging + + + + org.apache.maven.surefire + surefire-junit-platform + ${maven.surefire.plugin.version} + + + org.apache.maven.surefire + surefire-testng + ${maven.surefire.plugin.version} + + diff --git a/jetty-core/jetty-io/src/test/java/org/eclipse/jetty/io/content/ContentSourcePublisherTest.java b/jetty-core/jetty-io/src/test/java/org/eclipse/jetty/io/content/ContentSourcePublisherTest.java index 39f79b860e6f..31d8c49ddd18 100644 --- a/jetty-core/jetty-io/src/test/java/org/eclipse/jetty/io/content/ContentSourcePublisherTest.java +++ b/jetty-core/jetty-io/src/test/java/org/eclipse/jetty/io/content/ContentSourcePublisherTest.java @@ -21,7 +21,9 @@ import org.eclipse.jetty.io.Content; import org.reactivestreams.tck.TestEnvironment; import org.reactivestreams.tck.flow.FlowPublisherVerification; +import org.testng.annotations.Test; +@Test public final class ContentSourcePublisherTest extends FlowPublisherVerification { public ContentSourcePublisherTest()