S
- used to simulate "self types." For more information please read "Emulating 'self types' using Java Generics to simplify fluent API implementation."public interface JComponentFixture<S>
JComponent
s.Modifier and Type | Method and Description |
---|---|
Object |
clientProperty(Object key)
Returns the client property stored in this fixture's
JComponent , under the given key. |
S |
requireToolTip(Pattern pattern)
Asserts that the toolTip in this fixture's
JComponent matches the given regular expression pattern. |
S |
requireToolTip(String expected)
Asserts that the toolTip in this fixture's
JComponent matches the given value. |
@Nullable Object clientProperty(@Nonnull Object key)
JComponent
, under the given key.key
- the key to use to retrieve the client property.null
if the property was not found.NullPointerException
- if the given key is null
.@Nonnull S requireToolTip(@Nullable String expected)
JComponent
matches the given value.expected
- the given value. It can be a regular expression.AssertionError
- if the toolTip in this fixture's JComponent
does not match the given value.@Nonnull S requireToolTip(@Nonnull Pattern pattern)
JComponent
matches the given regular expression pattern.pattern
- the regular expression pattern to match.NullPointerException
- if the given regular expression pattern is null
.AssertionError
- if the toolTip in this fixture's JComponent
does not match the given value.Copyright © 2014-2015 AssertJ. All Rights Reserved.