Skip to content

Commit 772e85c

Browse files
committed
solve conflicts
1 parent 211bbdf commit 772e85c

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/PaginatorAssert.java

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,36 +9,37 @@
99
import java.util.List;
1010

1111
import static com.epam.jdi.light.asserts.core.SoftAssert.jdiAssert;
12+
import static org.hamcrest.Matchers.equalTo;
1213

1314
public class PaginatorAssert extends UIAssert<PaginatorAssert, Paginator> {
1415
@JDIAction(value = "Assert that '{name}' has '{0}' label", isAssert = true)
1516
public PaginatorAssert pageSizeLabel(final String label) {
16-
jdiAssert(element().itemPerPageLabel(), Matchers.equalTo(label));
17+
jdiAssert(element().itemPerPageLabel(), equalTo(label));
1718
return this;
1819
}
1920

2021
@JDIAction(value = "Assert that '{0}' option selected for '{name}'", isAssert = true)
2122
public PaginatorAssert itemsPerPageSelected(final int number) {
22-
jdiAssert(element().selected(), Matchers.equalTo(number));
23+
jdiAssert(element().selected(), equalTo(number));
2324
return this;
2425
}
2526

2627
@JDIAction(value = "Assert that '{0}' options for '{name}'", isAssert = true)
2728
public PaginatorAssert itemsPerPageList(final List<Integer> options) {
28-
jdiAssert(element().options(), Matchers.equalTo(options));
29+
jdiAssert(element().options(), equalTo(options));
2930
return this;
3031

3132
}
3233

3334
@JDIAction(value = "Assert that range is '{0}' for '{name}'", isAssert = true)
3435
public PaginatorAssert rangeLabel(final String label) {
35-
jdiAssert(element().range(), Matchers.equalTo(label));
36+
jdiAssert(element().range(), equalTo(label));
3637
return this;
3738
}
3839

3940
@JDIAction(value = "Assert that '{name}' has '{0}' color theme", isAssert = true)
4041
public PaginatorAssert colorTheme(final AngularColors value) {
41-
jdiAssert(AngularColors.fromName(element().colorTheme()), Matchers.equalTo(value));
42+
jdiAssert(AngularColors.fromType(element().colorTheme()), equalTo(value));
4243
return this;
4344
}
4445

@@ -50,37 +51,37 @@ public PaginatorAssert colorTheme(final String value) {
5051

5152
@JDIAction(value = "Assert that '{name}' has '{0}' color of the boarder", isAssert = true)
5253
public PaginatorAssert borderColor(final AngularColors value) {
53-
jdiAssert(AngularColors.fromColor(element().boarderColor()), Matchers.equalTo(value));
54+
jdiAssert(AngularColors.fromType(element().boarderColor()), Matchers.equalTo(value));
5455
return this;
5556
}
5657

5758
@JDIAction(value = "Assert that '{name}' has '{0}' color of the boarder", isAssert = true)
5859
public PaginatorAssert borderColor(final String value) {
59-
jdiAssert(element().boarderColor(), Matchers.equalTo(value));
60+
jdiAssert(element().boarderColor(), equalTo(value));
6061
return this;
6162
}
6263

6364
@JDIAction(value = "Assert that '{name}' has '{0}' color of the selected option", isAssert = true)
6465
public PaginatorAssert selectedOptionColor(final AngularColors value) {
65-
jdiAssert(AngularColors.fromColor(element().selectedOptionColor()), Matchers.equalTo(value));
66+
jdiAssert((element().selectedOptionColor()), equalTo(value));
6667
return this;
6768
}
6869

6970
@JDIAction(value = "Assert that '{name}' has '{0}' color of the selected option", isAssert = true)
7071
public PaginatorAssert selectedOptionColor(final String value) {
71-
jdiAssert(element().selectedOptionColor(), Matchers.equalTo(value));
72+
jdiAssert(element().selectedOptionColor(), equalTo(value));
7273
return this;
7374
}
7475

7576
@JDIAction(value = "Assert that '{name} has firstPageLabel='{0}'", isAssert = true)
7677
public PaginatorAssert firstPageLabel(final String label) {
77-
jdiAssert(element().firstPageLabel(), Matchers.equalTo(label));
78+
jdiAssert(element().firstPageLabel(), equalTo(label));
7879
return this;
7980
}
8081

8182
@JDIAction(value = "Assert that '{name} has lastPageLabel='{0}'", isAssert = true)
8283
public PaginatorAssert lastPageLabel(final String label) {
83-
jdiAssert(element().lastPageLabel(), Matchers.equalTo(label));
84+
jdiAssert(element().lastPageLabel(), equalTo(label));
8485
return this;
8586
}
8687

@@ -104,13 +105,13 @@ public PaginatorAssert firstLastButtonsShown(boolean value) {
104105
*/
105106
@JDIAction(value = "Assert that '{name}' has current page index of {0}", isAssert = true)
106107
public PaginatorAssert pageIndexCurrent(int pageIndex) {
107-
jdiAssert(element().pageIndexCurrent(), Matchers.equalTo(pageIndex));
108+
jdiAssert(element().pageIndexCurrent(), equalTo(pageIndex));
108109
return this;
109110
}
110111

111112
@JDIAction(value = "Assert that '{name}' has {0} total number of items that are being paginated", isAssert = true)
112113
public PaginatorAssert totalNumberOfPaginatedItems(int length) {
113-
jdiAssert(element().totalNumberOfPaginatedItems(), Matchers.equalTo(length));
114+
jdiAssert(element().totalNumberOfPaginatedItems(), equalTo(length));
114115
return this;
115116
}
116117

@@ -144,7 +145,7 @@ public PaginatorAssert nextPageButtonDisabled() {
144145

145146
@JDIAction(value = "Assert that item per page selector is disabled for '{name}'", isAssert = true)
146147
public PaginatorAssert itemPerPageSelectorDisabled() {
147-
jdiAssert(element().itemPerPageSelector().attr("aria-disabled"), Matchers.equalTo("true"),
148+
jdiAssert(element().itemPerPageSelector().attr("aria-disabled"), equalTo("true"),
148149
"item per page selector should be DISABLED");
149150
return this;
150151
}

0 commit comments

Comments
 (0)