-
- All Implemented Interfaces:
public class TabsTester<T extends Tabs> extends ComponentTester<T>
Tester for Tabs components.
-
-
Constructor Summary
Constructors Constructor Description TabsTester(T component)Wrap given component for testing.
-
Method Summary
Modifier and Type Method Description voidselect(String label)Selects the tab with the given label. voidselect(int index)Selects a tab based on its zero-based index. booleanisSelected(String label)Checks if the tab with the given label is currently selected. booleanisSelected(int index)Checks if the tab at the given index is currently selected. TabgetTab(String label)Gets the visible tab with the given label. TabgetTab(int index)Gets the visible tab at given index. -
-
Constructor Detail
-
TabsTester
TabsTester(T component)
Wrap given component for testing.- Parameters:
component- target component
-
-
Method Detail
-
select
void select(String label)
Selects the tab with the given label.
- Parameters:
label- the tab label
-
select
void select(int index)
Selects a tab based on its zero-based index.
- Parameters:
index- the zero-based index of the selected tab, negative value to unselect
-
isSelected
boolean isSelected(String label)
Checks if the tab with the given label is currently selected.
- Parameters:
label- the tab label
-
isSelected
boolean isSelected(int index)
Checks if the tab at the given index is currently selected.
- Parameters:
index- the zero-based index of the tab
-
getTab
Tab getTab(String label)
Gets the visible tab with the given label.
- Parameters:
label- the tab label
-
getTab
Tab getTab(int index)
Gets the visible tab at given index.
- Parameters:
index- the zero-based index of the selected tab, negative value to unselect
-
-
-
-