Interface TextInputFixture

All Superinterfaces:
EditableComponentFixture, TextDisplayFixture
All Known Implementing Classes:
JTextComponentFixture

public interface TextInputFixture extends TextDisplayFixture, EditableComponentFixture
Understands simulation of user events on GUI components that accept text input from the user.
  • Method Details

    • enterText

      TextInputFixture enterText(String text)
      Simulates a user entering the given text in the Component managed by this fixture.
      Parameters:
      text - the text to enter.
      Returns:
      this fixture.
    • deleteText

      TextInputFixture deleteText()
      Simulates a user deleting all the text in the Component managed by this fixture.
      Returns:
      this fixture.
    • selectAll

      TextInputFixture selectAll()
      Simulates a user selecting all the text contained in the Component managed by this fixture.
      Returns:
      this fixture.
    • selectText

      TextInputFixture selectText(int start, int end)
      Simulates a user selecting a portion of the text contained in the Component managed by this fixture.
      Parameters:
      start - index where selection should start.
      end - index where selection should end.
      Returns:
      this fixture.
    • select

      TextInputFixture select(String text)
      Simulates a user selecting the given text contained in the Component managed by this fixture.
      Parameters:
      text - the text to select.
      Returns:
      this fixture.