Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#5525 Add override annotation #5526

Merged
merged 1 commit into from
May 2, 2024
Merged
Show file tree
Hide file tree
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 @@ -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