Skip to content

Commit

Permalink
#5525 Add override annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
pnatashap committed May 2, 2024
1 parent 60f8c70 commit c764349
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ public String getValue() {
return getText();
}

@Override
public void setup(Field field) {
try {
Type[] types = getGenericTypes(field);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ public DataListAssert<T, D> verify(Matcher<? super List<D>> condition) {
assertSoft();
return isData(condition);
}

@Override
public void setup(Field field) {
try {
Type[] types = getGenericTypes(field);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ public void show() {
}
//endregion

@Override
public void setup(Field field) {
Type[] types;
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ public void setStartIndex(int index) {
startIndex = index;
}

@Override
public void setup(Field field) {
if (!fieldHasAnnotation(field, JDropdown.class, IsDropdown.class)) {
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ public IDataGridAssert<D, IDataGrid<L, D>,?> is() {
return new IDataGridAssert<>(this);
}

@Override
public void setup(Field field) {
grid().setup(field);
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ protected void preOpen(List<?> objs) {
@JDIAction("Get selected value") @Override
public String selected() { return list().selected(); }

@Override
public void setup(Field field) {
if (fieldHasAnnotation(field, JMenu.class, Menu2D.class)) {
JMenu jMenu = field.getAnnotation(JMenu.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ public class Combobox extends UIBaseElement<ComboboxAssert> implements ISetup, I
protected String selectedChipsLocator = ".v-select__slot .v-chip";
protected String prefixLocator = "div .v-text-field__prefix";
protected String suffixLocator = "div .v-text-field__suffix";

@Override
public void setup(Field field) {
if (!fieldHasAnnotation(field, JDICombobox.class, Combobox.class)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public class TreeView extends UIBaseElement<TreeViewAssert> implements
protected boolean autoClose;
protected boolean setupDone;

@Override
public void setup(Field field) {
if (fieldHasAnnotation(field, JDITreeView.class, TreeView.class)) {
JDITreeView annotation = field.getAnnotation(JDITreeView.class);
Expand Down

0 comments on commit c764349

Please sign in to comment.