Skip to content

Commit

Permalink
Merge pull request #5275 from jdi-testing/remove_Boolean
Browse files Browse the repository at this point in the history
Remove Boolean class usage
  • Loading branch information
pnatashap authored Dec 21, 2023
2 parents 8c96157 + c3588bc commit bc9ba45
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ default String labelText() {
*
* @return boolean if there is displayed and existed label or not
*/
default Boolean hasLabel() {
default boolean hasLabel() {
return label().isExist() & label().isDisplayed();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public boolean isMoveLeftButtonDisabled() {
* @return {@code true} if item with given text is checked, otherwise {@code false}
*/
@JDIAction("Check that '{name}' item '{0}' is selected")
public Boolean isChecked(String itemText) {
public boolean isChecked(String itemText) {
return getItemCheckbox(itemText).hasClass("Mui-checked");
}

Expand All @@ -178,7 +178,7 @@ public Boolean isChecked(String itemText) {
* @return {@code true} if item with given text is unchecked, otherwise {@code false}
*/
@JDIAction("Check that '{name}' item '{0}' is not selected")
public Boolean isUnchecked(String itemText) {
public boolean isUnchecked(String itemText) {
return !isChecked(itemText);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public void clear() {

@Override
@JDIAction("Get if '{name}' has label")
public Boolean hasLabel() {
public boolean hasLabel() {
return labelCore().isExist() & labelCore().isDisplayed();

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ public boolean hasThumbLabels() {
}

@JDIAction("Get if '{name}' has inverse label")
public Boolean hasInverseLabel() {
public boolean hasInverseLabel() {
return input().attr("class").contains("--inverse-label");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ public boolean hasThumbLabel() {
}

@JDIAction("Get '{name}' inverse label")
public Boolean hasInverseLabel() {
public boolean hasInverseLabel() {
return input().attr("class").contains("--inverse-label");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,12 @@ public int counterValue() {
}

@JDIAction("Get if '{name}' is expanded")
public Boolean isExpanded() {
public boolean isExpanded() {
return core().hasClass(OPEN_PANEL_CLASS);
}

@JDIAction("Get if '{name}' is closed")
public Boolean isClosed() {
public boolean isClosed() {
return !isExpanded();
}

Expand Down

0 comments on commit bc9ba45

Please sign in to comment.