Class CellSelectionTest


  • public class CellSelectionTest
    extends Object
    • Constructor Detail

      • CellSelectionTest

        public CellSelectionTest()
    • Method Detail

      • setUp

        public void setUp()
      • cleanUp

        public void cleanUp()
      • shouldHaveOriginSelected

        public void shouldHaveOriginSelected()
      • shouldMoveTheSelectionAnchorLeftUsingLeftArrowKey

        public void shouldMoveTheSelectionAnchorLeftUsingLeftArrowKey()
      • shouldExtendTheSelectionToTheLeftUsingLeftArrowAndShiftKeys

        public void shouldExtendTheSelectionToTheLeftUsingLeftArrowAndShiftKeys()
      • shouldMoveTheSelectionAnchorRightUsingRightArrowKey

        public void shouldMoveTheSelectionAnchorRightUsingRightArrowKey()
      • shouldExtendTheSelectionRightUsingRightArrowAndShiftKeys

        public void shouldExtendTheSelectionRightUsingRightArrowAndShiftKeys()
      • shouldMoveTheSelectionAnchorUpUsingUpArrowKey

        public void shouldMoveTheSelectionAnchorUpUsingUpArrowKey()
      • shouldExtendTheSelectionUpUsingUpArrowAndShiftKeys

        public void shouldExtendTheSelectionUpUsingUpArrowAndShiftKeys()
      • shouldMoveTheSelectionAnchorDownUsingDownArrowKey

        public void shouldMoveTheSelectionAnchorDownUsingDownArrowKey()
      • shouldExtendTheSelectionDownUsingDownArrowAndShiftKeys

        public void shouldExtendTheSelectionDownUsingDownArrowAndShiftKeys()
      • shouldMoveTheSelecitonAnchorToStartOfRowUsingHomeKey

        public void shouldMoveTheSelecitonAnchorToStartOfRowUsingHomeKey()
      • shouldExtendTheSelectionToStartOfRowUsingHomeAndShiftKeys

        public void shouldExtendTheSelectionToStartOfRowUsingHomeAndShiftKeys()
      • shouldMoveTheSelectionAnchorToEndOfRowUsingEndKey

        public void shouldMoveTheSelectionAnchorToEndOfRowUsingEndKey()
      • shouldExtendTheSelectionToEndOfRowUsingEndAndShiftKeys

        public void shouldExtendTheSelectionToEndOfRowUsingEndAndShiftKeys()
      • shouldMoveTheSelectionAnchorOnePageUpUsingPageUpKey

        public void shouldMoveTheSelectionAnchorOnePageUpUsingPageUpKey()
      • shouldExtendSelectionOnePageUpUsingThePageUpAndShiftKeys

        public void shouldExtendSelectionOnePageUpUsingThePageUpAndShiftKeys()
      • shouldMoveTheSelectionAnchorOnePageDownUsingPageDownKey

        public void shouldMoveTheSelectionAnchorOnePageDownUsingPageDownKey()
      • shouldExtendSelectionOnePageDownUsingPageDownAndShiftKeys

        public void shouldExtendSelectionOnePageDownUsingPageDownAndShiftKeys()
      • moveCellWhenARangeOfCellsIsSelected

        public void moveCellWhenARangeOfCellsIsSelected()
                                                 throws Exception
        If a range of cells is selected - clear selection and move anchor to the next cell in the direction moved
        Throws:
        Exception
      • shouldReturnTheCorrectCountOfSelectedCells

        public void shouldReturnTheCorrectCountOfSelectedCells()
        Selected cells are (col,row): (2,3),(4,1),(1,0),(9,9)
      • shouldReturnSixCells

        public void shouldReturnSixCells()
      • onlyOneCellSelectedAtAnyTime

        public void onlyOneCellSelectedAtAnyTime()