Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ public void toggleDisableConsoleRedirect() throws Exception {
public void toggleQueueRequestsOnStart() throws Exception {
String attrName = "queue-requests-on-start";
FormFragment form = page.getHostsForm();
boolean originalValue = operations.readAttribute(UNDERTOW_DEFAULT_HOST_ADDRESS, attrName).booleanValue();
// Boolean attributes with undefined default value and undefined value are displayed as false by default
boolean originalValue = operations.readAttribute(UNDERTOW_DEFAULT_HOST_ADDRESS, attrName).booleanValue(false);
assertEquals("The '" + attrName + "' value presented in the form differs from the one in model.",
originalValue, Boolean.valueOf(form.value(attrName)));
crudOperations.update(UNDERTOW_DEFAULT_HOST_ADDRESS, form, attrName, !originalValue);
Expand Down
Loading