Principal : quickstartUser
", lines[2].trim()); - Assert.assertEquals("Remote User : quickstartUser
", lines[3].trim()); - Assert.assertEquals("Authentication Type : BASIC
", lines[4].trim()); + Assertions.assertEquals("Principal : quickstartUser
", lines[2].trim()); + Assertions.assertEquals("Remote User : quickstartUser
", lines[3].trim()); + Assertions.assertEquals("Authentication Type : BASIC
", lines[4].trim()); } @Test @@ -90,6 +88,6 @@ protected PasswordAuthentication getPasswordAuthentication() { } }).build(); HttpResponse response = client.send(request, HttpResponse.BodyHandlers.ofString()); - Assert.assertEquals(403, response.statusCode()); + Assertions.assertEquals(403, response.statusCode()); } } diff --git a/servlet-security/src/test/java/org/jboss/as/quickstarts/servlet_security/ProvisionedManagedSecureIT.java b/servlet-security/src/test/java/org/jboss/as/quickstarts/servlet_security/ProvisionedManagedSecureIT.java deleted file mode 100644 index ba24ab246c..0000000000 --- a/servlet-security/src/test/java/org/jboss/as/quickstarts/servlet_security/ProvisionedManagedSecureIT.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2022 Red Hat, Inc. - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.jboss.as.quickstarts.servlet_security; - -import java.net.URI; -import java.net.URISyntaxException; -import org.jboss.arquillian.container.test.api.RunAsClient; -import org.jboss.arquillian.junit.Arquillian; -import org.junit.runner.RunWith; - -/** - * - * @author Emmanuel Hugonnet (c) 2022 Red Hat, Inc. - */ -@RunWith(Arquillian.class) -@RunAsClient -public class ProvisionedManagedSecureIT extends RemoteSecureIT { - - @Override - protected URI getHTTPEndpoint() { - String host = getServerHost(); - if (host == null) { - host = "http://localhost:8080"; - } - try { - return new URI(host + "/SecuredServlet"); - } catch (URISyntaxException ex) { - throw new RuntimeException(ex); - } - } -}