Class CellSelectionTest
java.lang.Object
org.eclipse.nebula.widgets.nattable.selection.CellSelectionTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanUp()voidIf a range of cells is selected - clear selection and move anchor to the next cell in the direction movedvoidvoidsetUp()voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidSelected cells are (col,row): (2,3),(4,1),(1,0),(9,9)
-
Constructor Details
-
CellSelectionTest
public CellSelectionTest()
-
-
Method Details
-
setUp
@BeforeEach public void setUp() -
cleanUp
@AfterEach public void cleanUp() -
shouldHaveOriginSelected
@Test public void shouldHaveOriginSelected() -
shouldMoveTheSelectionAnchorLeftUsingLeftArrowKey
@Test public void shouldMoveTheSelectionAnchorLeftUsingLeftArrowKey() -
shouldExtendTheSelectionToTheLeftUsingLeftArrowAndShiftKeys
@Test public void shouldExtendTheSelectionToTheLeftUsingLeftArrowAndShiftKeys() -
shouldMoveTheSelectionAnchorRightUsingRightArrowKey
@Test public void shouldMoveTheSelectionAnchorRightUsingRightArrowKey() -
shouldExtendTheSelectionRightUsingRightArrowAndShiftKeys
@Test public void shouldExtendTheSelectionRightUsingRightArrowAndShiftKeys() -
shouldMoveTheSelectionAnchorUpUsingUpArrowKey
@Test public void shouldMoveTheSelectionAnchorUpUsingUpArrowKey() -
shouldExtendTheSelectionUpUsingUpArrowAndShiftKeys
@Test public void shouldExtendTheSelectionUpUsingUpArrowAndShiftKeys() -
shouldMoveTheSelectionAnchorDownUsingDownArrowKey
@Test public void shouldMoveTheSelectionAnchorDownUsingDownArrowKey() -
shouldExtendTheSelectionDownUsingDownArrowAndShiftKeys
@Test public void shouldExtendTheSelectionDownUsingDownArrowAndShiftKeys() -
shouldMoveTheSelecitonAnchorToStartOfRowUsingHomeKey
@Test public void shouldMoveTheSelecitonAnchorToStartOfRowUsingHomeKey() -
shouldExtendTheSelectionToStartOfRowUsingHomeAndShiftKeys
@Test public void shouldExtendTheSelectionToStartOfRowUsingHomeAndShiftKeys() -
shouldMoveTheSelectionAnchorToEndOfRowUsingEndKey
@Test public void shouldMoveTheSelectionAnchorToEndOfRowUsingEndKey() -
shouldExtendTheSelectionToEndOfRowUsingEndAndShiftKeys
@Test public void shouldExtendTheSelectionToEndOfRowUsingEndAndShiftKeys() -
shouldMoveTheSelectionAnchorOnePageUpUsingPageUpKey
@Test public void shouldMoveTheSelectionAnchorOnePageUpUsingPageUpKey() -
shouldExtendSelectionOnePageUpUsingThePageUpAndShiftKeys
@Test public void shouldExtendSelectionOnePageUpUsingThePageUpAndShiftKeys() -
shouldMoveTheSelectionAnchorOnePageDownUsingPageDownKey
@Test public void shouldMoveTheSelectionAnchorOnePageDownUsingPageDownKey() -
shouldExtendSelectionOnePageDownUsingPageDownAndShiftKeys
@Test public void shouldExtendSelectionOnePageDownUsingPageDownAndShiftKeys() -
moveCellWhenARangeOfCellsIsSelected
If a range of cells is selected - clear selection and move anchor to the next cell in the direction moved- Throws:
Exception
-
shouldReturnTheCorrectCountOfSelectedCells
@Test public void shouldReturnTheCorrectCountOfSelectedCells()Selected cells are (col,row): (2,3),(4,1),(1,0),(9,9) -
shouldReturnSixCells
@Test public void shouldReturnSixCells() -
onlyOneCellSelectedAtAnyTime
@Test public void onlyOneCellSelectedAtAnyTime()
-