S - used to simulate "self types." For more information please read "Emulating 'self types' using Java Generics to simplify fluent API implementation."public interface TextInputFixture<S> extends TextDisplayFixture<S>, EditableComponentFixture<S>
Components that accept text input from the user.| Modifier and Type | Method and Description |
|---|---|
S |
deleteText()
Simulates a user deleting all the text in the
Component managed by this fixture. |
S |
enterText(String text)
Simulates a user entering the given text in the
Component managed by this fixture. |
S |
select(String text)
Simulates a user selecting the given text contained in the
Component managed by this fixture. |
S |
selectAll()
Simulates a user selecting all the text contained in the
Component managed by this fixture. |
S |
selectText(int start,
int end)
Simulates a user selecting a portion of the text contained in the
Component managed by this fixture. |
requireText, requireText, textrequireEditable, requireNotEditable@Nonnull S enterText(@Nonnull String text)
Component managed by this fixture.text - the text to enter.@Nonnull S deleteText()
Component managed by this fixture.@Nonnull S selectAll()
Component managed by this fixture.@Nonnull S selectText(int start, int end)
Component managed by this fixture.start - index where selection should start.end - index where selection should end.Copyright © 2014 AssertJ. All rights reserved.