View Javadoc
1   /*
2    *  Copyright 2022 Red Hat
3    *
4    *  Licensed under the Apache License, Version 2.0 (the "License");
5    *  you may not use this file except in compliance with the License.
6    *  You may obtain a copy of the License at
7    *
8    *      https://www.apache.org/licenses/LICENSE-2.0
9    *
10   *  Unless required by applicable law or agreed to in writing, software
11   *  distributed under the License is distributed on an "AS IS" BASIS,
12   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   *  See the License for the specific language governing permissions and
14   *  limitations under the License.
15   */
16  package org.jboss.hal.testsuite.noop;
17  
18  import org.jboss.hal.testsuite.container.WildFlyContainer;
19  import org.jboss.hal.testsuite.test.Manatoko;
20  import org.junit.jupiter.api.Test;
21  import org.slf4j.Logger;
22  import org.slf4j.LoggerFactory;
23  import org.testcontainers.junit.jupiter.Container;
24  import org.testcontainers.junit.jupiter.Testcontainers;
25  
26  import static org.jboss.hal.testsuite.container.WildFlyConfiguration.DEFAULT;
27  import static org.junit.jupiter.api.Assertions.assertNotNull;
28  
29  @Manatoko
30  @Testcontainers
31  class NoopWildFlyTest {
32  
33      @Container static WildFlyContainer wildFly = WildFlyContainer.standalone(DEFAULT);
34      private static final Logger logger = LoggerFactory.getLogger(NoopWildFlyTest.class);
35  
36      @Test
37      void noop() {
38          assertNotNull(wildFly.managementClient());
39          logger.info("All systems up and running. Management client: {}", wildFly.managementClient());
40      }
41  }