Skip to content

Commit 916790f

Browse files
committed
Updating default value of queue-requests-on-start in Undertow AttributesTest
1 parent 8a2de19 commit 916790f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • tests-configuration-undertow/src/test/java/org/jboss/hal/testsuite/test/configuration/undertow/server/hosts

tests-configuration-undertow/src/test/java/org/jboss/hal/testsuite/test/configuration/undertow/server/hosts/AttributesTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ public void toggleDisableConsoleRedirect() throws Exception {
111111
public void toggleQueueRequestsOnStart() throws Exception {
112112
String attrName = "queue-requests-on-start";
113113
FormFragment form = page.getHostsForm();
114-
boolean originalValue = operations.readAttribute(UNDERTOW_DEFAULT_HOST_ADDRESS, attrName).booleanValue();
114+
// Boolean attributes with undefined default value and undefined value are displayed as false by default
115+
boolean originalValue = operations.readAttribute(UNDERTOW_DEFAULT_HOST_ADDRESS, attrName).booleanValue(false);
115116
assertEquals("The '" + attrName + "' value presented in the form differs from the one in model.",
116117
originalValue, Boolean.valueOf(form.value(attrName)));
117118
crudOperations.update(UNDERTOW_DEFAULT_HOST_ADDRESS, form, attrName, !originalValue);

0 commit comments

Comments
 (0)