public class JLabelTextReader extends TextReader<JLabel>
JLabel
.Constructor and Description |
---|
JLabelTextReader() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkContainsText(JLabel label,
String text)
Indicates whether the given
JLabel displays the given text. |
Class<JLabel> |
supportedComponent() |
containsText
@Nonnull public Class<JLabel> supportedComponent()
supportedComponent
in class TextReader<JLabel>
JLabel.class
.@RunsInCurrentThread protected boolean checkContainsText(@Nonnull JLabel label, @Nonnull String text)
JLabel
displays the given text.checkContainsText
in class TextReader<JLabel>
label
- the given JLabel
.text
- the given text.true
if the given JLabel
displays the given text; false
otherwise.Copyright © 2014–2019 AssertJ. All rights reserved.