diff --git a/test/coreprofile/helloarquillian/pom.xml b/test/coreprofile/helloarquillian/pom.xml deleted file mode 100644 index 06ca0f8eec..0000000000 --- a/test/coreprofile/helloarquillian/pom.xml +++ /dev/null @@ -1,84 +0,0 @@ - - - - 4.0.0 - - - cloud.piranha.test.coreprofile - project - 24.11.0-SNAPSHOT - - - piranha-test-coreprofile-helloarquillian - war - - Piranha - Test - Core Profile - Hello Arquillian - - - UTF-8 - - - - - - org.jboss.arquillian - arquillian-bom - ${arquillian.version} - pom - import - - - - - - - jakarta.platform - jakarta.jakartaee-core-api - provided - - - - cloud.piranha.arquillian - piranha-arquillian-managed - ${project.version} - test - - - org.jboss.arquillian.junit5 - arquillian-junit5-container - test - - - org.junit.jupiter - junit-jupiter - test - - - org.junit.jupiter - junit-jupiter-engine - test - - - org.junit.jupiter - junit-jupiter-params - test - - - - - piranha-test-coreprofile-helloarquillian - - - org.apache.maven.plugins - maven-failsafe-plugin - - - org.apache.maven.plugins - maven-war-plugin - - false - - - - - diff --git a/test/coreprofile/helloarquillian/src/main/java/helloarquillian/HelloArquillianApplication.java b/test/coreprofile/helloarquillian/src/main/java/helloarquillian/HelloArquillianApplication.java deleted file mode 100644 index bbaac47e44..0000000000 --- a/test/coreprofile/helloarquillian/src/main/java/helloarquillian/HelloArquillianApplication.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) 2002-2024 Manorrock.com. All Rights Reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. Neither the name of the copyright holder nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -package helloarquillian; - -import jakarta.ws.rs.ApplicationPath; -import jakarta.ws.rs.core.Application; - -/** - * The HelloArquillian application. - * - * @author Manfred Riem (mriem@manorrock.com) - */ -@ApplicationPath("") -public class HelloArquillianApplication extends Application { -} diff --git a/test/coreprofile/helloarquillian/src/main/java/helloarquillian/HelloArquillianBean.java b/test/coreprofile/helloarquillian/src/main/java/helloarquillian/HelloArquillianBean.java deleted file mode 100644 index 402b079bd2..0000000000 --- a/test/coreprofile/helloarquillian/src/main/java/helloarquillian/HelloArquillianBean.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (c) 2002-2024 Manorrock.com. All Rights Reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. Neither the name of the copyright holder nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -package helloarquillian; - -import jakarta.enterprise.context.RequestScoped; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; - -/** - * The HelloArquillian bean. - * - * @author Manfred Riem (mriem@manorrock.com) - */ -@Path("/helloarquillian") -@RequestScoped -public class HelloArquillianBean { - - /** - * Say 'Hello Arquillian!' - * - * @return 'Hello Arquillian!' - */ - @GET - public String helloArquillian() { - return "Hello Arquillian!"; - } -} diff --git a/test/coreprofile/helloarquillian/src/main/webapp/WEB-INF/beans.xml b/test/coreprofile/helloarquillian/src/main/webapp/WEB-INF/beans.xml deleted file mode 100644 index 3561611aeb..0000000000 --- a/test/coreprofile/helloarquillian/src/main/webapp/WEB-INF/beans.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - diff --git a/test/coreprofile/helloarquillian/src/test/java/helloarquillian/HelloArquillianIT.java b/test/coreprofile/helloarquillian/src/test/java/helloarquillian/HelloArquillianIT.java deleted file mode 100644 index 832532f5d4..0000000000 --- a/test/coreprofile/helloarquillian/src/test/java/helloarquillian/HelloArquillianIT.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright (c) 2002-2024 Manorrock.com. All Rights Reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. Neither the name of the copyright holder nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -package helloarquillian; - -import java.io.File; -import java.net.URI; -import java.net.URL; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.net.http.HttpResponse.BodyHandlers; -import org.jboss.arquillian.container.test.api.Deployment; -import org.jboss.arquillian.container.test.api.RunAsClient; -import org.jboss.arquillian.junit5.ArquillianExtension; -import org.jboss.arquillian.test.api.ArquillianResource; -import static org.jboss.shrinkwrap.api.ShrinkWrap.create; -import org.jboss.shrinkwrap.api.spec.WebArchive; -import static org.junit.jupiter.api.Assertions.assertTrue; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.extension.ExtendWith; - -/** - * The HelloArquillian integration test. - * - * @author Manfred Riem (mriem@manorrock.com) - */ -@ExtendWith(ArquillianExtension.class) -class HelloArquillianIT { - - @ArquillianResource - private URL baseUrl; - - @Deployment(testable = false) - public static WebArchive createDeployment() { - return create(WebArchive.class) - .addClass(HelloArquillianApplication.class) - .addClass(HelloArquillianBean.class) - .addAsWebInfResource((new File("src/main/webapp/WEB-INF", "beans.xml"))); - } - - /** - * Test the 'Hello Arquillian!' REST endpoint. - * - * @throws Exception when a serious error occurs. - */ - @Test - @RunAsClient - void testHelloArquillian() throws Exception { - HttpClient client = HttpClient.newHttpClient(); - HttpRequest request = HttpRequest - .newBuilder(new URI(baseUrl + "helloarquillian")) - .build(); - HttpResponse response = client.send(request, BodyHandlers.ofString()); - assertTrue(response.body().contains("Hello Arquillian!")); - } -} diff --git a/test/coreprofile/pom.xml b/test/coreprofile/pom.xml index 99244aadba..910adc332e 100644 --- a/test/coreprofile/pom.xml +++ b/test/coreprofile/pom.xml @@ -31,7 +31,6 @@ arquillian - helloarquillian hello json