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.arquillian.drone.api.annotation.Drone;
19  import org.jboss.hal.testsuite.test.Manatoko;
20  import org.junit.jupiter.api.Test;
21  import org.openqa.selenium.WebDriver;
22  import org.slf4j.Logger;
23  import org.slf4j.LoggerFactory;
24  
25  import static org.junit.jupiter.api.Assertions.assertNotNull;
26  
27  @Manatoko
28  class NoopDroneTest {
29  
30      private static final Logger logger = LoggerFactory.getLogger(NoopDroneTest.class);
31  
32      @Drone WebDriver browser;
33  
34      @Test
35      void noop() {
36          assertNotNull(browser);
37          logger.info("All systems up and running. Web driver current URL: {}", browser.getCurrentUrl());
38      }
39  }