1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.jboss.hal.testsuite.test.configuration.ee;
17
18 import org.jboss.arquillian.core.api.annotation.Inject;
19 import org.jboss.arquillian.graphene.page.Page;
20 import org.jboss.hal.resources.Ids;
21 import org.jboss.hal.testsuite.Console;
22 import org.jboss.hal.testsuite.CrudOperations;
23 import org.jboss.hal.testsuite.container.WildFlyContainer;
24 import org.jboss.hal.testsuite.fragment.FormFragment;
25 import org.jboss.hal.testsuite.page.configuration.EEPage;
26 import org.jboss.hal.testsuite.test.Manatoko;
27 import org.junit.jupiter.api.BeforeEach;
28 import org.junit.jupiter.api.Test;
29 import org.testcontainers.junit.jupiter.Container;
30 import org.testcontainers.junit.jupiter.Testcontainers;
31
32 import static org.jboss.hal.dmr.ModelDescriptionConstants.CONTEXT_SERVICE;
33 import static org.jboss.hal.testsuite.container.WildFlyConfiguration.DEFAULT;
34 import static org.jboss.hal.testsuite.fixtures.EEFixtures.DEFAULT_BINDINGS_ADDRESS;
35
36 @Manatoko
37 @Testcontainers
38 class DefaultBindingsTest {
39
40 @Container static WildFlyContainer wildFly = WildFlyContainer.standalone(DEFAULT);
41
42 @Inject Console console;
43 @Inject CrudOperations crud;
44 @Page EEPage page;
45 FormFragment form;
46
47 @BeforeEach
48 void prepare() {
49 page.navigate();
50 console.verticalNavigation().selectPrimary(Ids.EE_DEFAULT_BINDINGS_ITEM);
51 form = page.getDefaultBindingsForm();
52 }
53
54 @Test
55 void update() throws Exception {
56 crud.update(DEFAULT_BINDINGS_ADDRESS, form, CONTEXT_SERVICE);
57 }
58
59 @Test
60 void reset() throws Exception {
61 crud.reset(DEFAULT_BINDINGS_ADDRESS, form);
62 }
63 }