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.test.configuration.transaction;
17  
18  import org.jboss.arquillian.core.api.annotation.Inject;
19  import org.jboss.hal.meta.token.NameTokens;
20  import org.jboss.hal.resources.Ids;
21  import org.jboss.hal.resources.Names;
22  import org.jboss.hal.testsuite.Console;
23  import org.jboss.hal.testsuite.container.WildFlyContainer;
24  import org.jboss.hal.testsuite.fragment.finder.FinderPath;
25  import org.jboss.hal.testsuite.test.Manatoko;
26  import org.junit.jupiter.api.Test;
27  import org.testcontainers.junit.jupiter.Container;
28  import org.testcontainers.junit.jupiter.Testcontainers;
29  
30  import com.gwtplatform.mvp.shared.proxy.PlaceRequest;
31  
32  import static org.jboss.hal.testsuite.container.WildFlyConfiguration.DEFAULT;
33  
34  @Manatoko
35  @Testcontainers
36  class TransactionFinderTest {
37  
38      @Container static WildFlyContainer wildFly = WildFlyContainer.standalone(DEFAULT);
39  
40      @Inject Console console;
41  
42      @Test
43      void view() {
44          console.finder(NameTokens.CONFIGURATION, new FinderPath().append(Ids.CONFIGURATION, Ids.asId(Names.SUBSYSTEMS)))
45                  .column(Ids.CONFIGURATION_SUBSYSTEM).selectItem(NameTokens.TRANSACTIONS).view();
46          console.verify(new PlaceRequest.Builder().nameToken(NameTokens.TRANSACTIONS).build());
47      }
48  }