-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
73 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 35 additions & 21 deletions
56
...vuetify/asserts/ListItemGroupsAssert.java → .../vuetify/asserts/ListItemGroupAssert.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,95 +1,109 @@ | ||
package com.epam.jdi.light.vuetify.asserts; | ||
|
||
import com.epam.jdi.light.asserts.generic.UIAssert; | ||
import com.epam.jdi.light.common.JDIAction; | ||
import com.epam.jdi.light.vuetify.elements.complex.ListItemGroup; | ||
import com.epam.jdi.light.asserts.generic.ColorAssert; | ||
import com.epam.jdi.light.vuetify.interfaces.asserts.FlatAssert; | ||
import com.epam.jdi.light.vuetify.interfaces.asserts.ThemeAssert; | ||
import org.hamcrest.Matchers; | ||
|
||
import static com.epam.jdi.light.asserts.core.SoftAssert.jdiAssert; | ||
|
||
|
||
public class ListItemGroupsAssert extends UIAssert<ListItemGroupsAssert, ListItemGroup> implements | ||
FlatAssert<ListItemGroupsAssert, ListItemGroup>, ColorAssert<ListItemGroupsAssert, ListItemGroup>, | ||
ThemeAssert<ListItemGroupsAssert, ListItemGroup> { | ||
public class ListItemGroupAssert extends ListItemAssert implements | ||
FlatAssert<ListItemGroupAssert, ListItemGroup> { | ||
|
||
@Override | ||
public ListItemGroup element() { | ||
return (ListItemGroup) super.element(); | ||
} | ||
|
||
public ListItemGroupAssert set(ListItemGroup element) { | ||
super.set(element); | ||
return this; | ||
} | ||
|
||
public ListItemGroupAssert and() { | ||
super.and(); | ||
return this; | ||
} | ||
|
||
|
||
@JDIAction(value = "Assert that '{name}' is active", isAssert = true) | ||
public ListItemGroupsAssert active() { | ||
public ListItemGroupAssert active() { | ||
jdiAssert(element().isActive(), Matchers.is(true), "ListItemGroup is not active"); | ||
return this; | ||
} | ||
|
||
@JDIAction(value = "Assert that '{name}' is not active", isAssert = true) | ||
public ListItemGroupsAssert notActive() { | ||
public ListItemGroupAssert notActive() { | ||
jdiAssert(element().isActive(), Matchers.is(false), "ListItemGroup is active"); | ||
return this; | ||
} | ||
|
||
@JDIAction(value = "Assert that '{name}' has title", isAssert = true) | ||
public ListItemGroupsAssert title() { | ||
jdiAssert(element().hasTitle(), Matchers.is(true), "ListItemGroup has no title"); | ||
public ListItemGroupAssert title() { | ||
jdiAssert(element().header().isExist(), Matchers.is(true), "ListItemGroup has no title"); | ||
return this; | ||
} | ||
|
||
@JDIAction(value = "Assert that '{name}' has no title", isAssert = true) | ||
public ListItemGroupsAssert noTitle() { | ||
jdiAssert(element().hasTitle(), Matchers.is(false), "ListItemGroup has title"); | ||
public ListItemGroupAssert noTitle() { | ||
jdiAssert(element().header().isExist(), Matchers.is(false), "ListItemGroup has title"); | ||
return this; | ||
} | ||
|
||
@JDIAction(value = "Assert that '{name}' has border", isAssert = true) | ||
public ListItemGroupsAssert border() { | ||
public ListItemGroupAssert border() { | ||
jdiAssert(element().hasBorder(), Matchers.is(true), "ListItemGroup has no border"); | ||
return this; | ||
} | ||
|
||
@JDIAction(value = "Assert that '{name}' has not border", isAssert = true) | ||
public ListItemGroupsAssert noBorder() { | ||
public ListItemGroupAssert noBorder() { | ||
jdiAssert(element().hasBorder(), Matchers.is(false), "ListItemGroup has border"); | ||
return this; | ||
} | ||
|
||
@JDIAction(value = "Assert that '{name}' has icon", isAssert = true) | ||
public ListItemGroupsAssert icon() { | ||
public ListItemGroupAssert icon() { | ||
jdiAssert(element().hasIcon(), Matchers.is(true), "ListItemGroup does not have icon"); | ||
return this; | ||
} | ||
|
||
@JDIAction(value = "Assert that '{name}' has no icon", isAssert = true) | ||
public ListItemGroupsAssert noIcon() { | ||
public ListItemGroupAssert noIcon() { | ||
jdiAssert(element().hasIcon(), Matchers.is(false), "ListItemGroup has icon"); | ||
return this; | ||
} | ||
|
||
@JDIAction(value = "Assert that '{name}' contains text '{0}'", isAssert = true) | ||
public ListItemGroupsAssert containsText(String text) { | ||
public ListItemGroupAssert containsText(String text) { | ||
jdiAssert(element().getText(), Matchers.containsString(text)); | ||
return this; | ||
} | ||
|
||
@JDIAction(value = "Assert that '{name}' is a sub-group", isAssert = true) | ||
public ListItemGroupsAssert subGroup() { | ||
public ListItemGroupAssert subGroup() { | ||
jdiAssert(element().isSubgroup(), Matchers.is(true), "ListItemGroup is not a sub-group"); | ||
return this; | ||
} | ||
|
||
@JDIAction(value = "Assert that '{name}' is not a sub-group", isAssert = true) | ||
public ListItemGroupsAssert notSubGroup() { | ||
public ListItemGroupAssert notSubGroup() { | ||
jdiAssert(element().isSubgroup(), Matchers.is(false), "ListItemGroup is sub-group"); | ||
return this; | ||
} | ||
|
||
@JDIAction(value = "Assert that '{name}' is no-action", isAssert = true) | ||
public ListItemGroupsAssert noAction() { | ||
public ListItemGroupAssert noAction() { | ||
jdiAssert(element().isNoAction(), Matchers.is(true), "ListItemGroup is not no-action"); | ||
return this; | ||
} | ||
|
||
@JDIAction(value = "Assert that '{name}' is not no-action", isAssert = true) | ||
public ListItemGroupsAssert notNoAction() { | ||
public ListItemGroupAssert notNoAction() { | ||
jdiAssert(element().isNoAction(), Matchers.is(false), "ListItemGroup is no-action"); | ||
return this; | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d6ad14b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't able to retrieve PDD puzzles from the code base and submit them to github. If you think that it's a bug on our side, please submit it to yegor256/0pdd:
Please, copy and paste this stack trace to GitHub: