public abstract class AbstractAssertionsForWicket<SELF extends AbstractAssertionsForWicket<SELF,T,ASSERTIONS_COMPONENT,ASSERTIONS_LIST>,T extends org.apache.wicket.Component,ASSERTIONS_COMPONENT extends AbstractAssertionsForWicket<ASSERTIONS_COMPONENT,org.apache.wicket.Component,?,?>,ASSERTIONS_LIST extends AbstractAssertionsForWicketList<ASSERTIONS_LIST,ASSERTIONS_COMPONENT>> extends AssertionsBase<SELF,T>
| Constructor and Description |
|---|
AbstractAssertionsForWicket(T c) |
| Modifier and Type | Method and Description |
|---|---|
org.assertj.core.api.AbstractObjectAssert<?,Serializable> |
assertDefaultModelObject() |
protected String |
debugAddDetailsToLine(org.apache.wicket.Component component,
String currentTextLine) |
SELF |
debugComponentTree()
Gera para o console a árvore de componentes a partir do elemento atual.
|
protected void |
debugComponentTree(int level,
org.apache.wicket.Component component) |
ASSERTIONS_COMPONENT |
findSubComponent(Predicate<org.apache.wicket.Component> predicate)
Busca um sub componente do componente atual que atenda ao critério informado.
|
protected Optional<String> |
generateDescriptionForCurrentTarget(Optional<T> current) |
ASSERTIONS_LIST |
getSubComponents(Class<?> targetClass)
Retornar uma lista com todos os sub componentes do atual que forem da classe informada.
|
ASSERTIONS_LIST |
getSubComponents(Predicate<org.apache.wicket.Component> predicate)
Retornar uma lista dos sub componentes que atendem a critério informado.
|
ASSERTIONS_LIST |
getSubComponentsWithId(String componentId)
Retornar uma lista com todos os sub componentes com o ID informado.
|
ASSERTIONS_COMPONENT |
getSubComponentWithId(String componentId)
Busca um sub componente do componente atual com o ID informado e retonar o resultado.
|
protected abstract ASSERTIONS_COMPONENT |
toAssertionsComponent(org.apache.wicket.Component component) |
protected abstract ASSERTIONS_LIST |
toAssertionsList(List<org.apache.wicket.Component> list) |
errorMsg, errorMsg, getTarget, getTarget, getTargetOptas, as, asList, asString, describedAs, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, equals, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasToString, inBinary, inHexadecimal, is, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isInstanceOfSatisfying, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, matches, matches, overridingErrorMessage, satisfies, setCustomRepresentation, throwAssertionError, usingComparator, usingDefaultComparator, withFailMessage, withRepresentation, withThreadDumpOnErrorpublic AbstractAssertionsForWicket(T c)
@Nonnull protected final Optional<String> generateDescriptionForCurrentTarget(@Nonnull Optional<T> current)
generateDescriptionForCurrentTarget in class AssertionsBase<SELF extends AbstractAssertionsForWicket<SELF,T,ASSERTIONS_COMPONENT,ASSERTIONS_LIST>,T extends org.apache.wicket.Component>@Nonnull protected abstract ASSERTIONS_COMPONENT toAssertionsComponent(@Nullable org.apache.wicket.Component component)
@Nonnull protected abstract ASSERTIONS_LIST toAssertionsList(@Nonnull List<org.apache.wicket.Component> list)
@Nonnull public final ASSERTIONS_COMPONENT getSubComponentWithId(String componentId)
@Nonnull public final ASSERTIONS_COMPONENT findSubComponent(Predicate<org.apache.wicket.Component> predicate)
@Nonnull public final ASSERTIONS_LIST getSubComponents(@Nonnull Class<?> targetClass)
@Nonnull public final ASSERTIONS_LIST getSubComponentsWithId(@Nonnull String componentId)
A lista pode ser de tamanho zero.
@Nonnull public final ASSERTIONS_LIST getSubComponents(@Nonnull Predicate<org.apache.wicket.Component> predicate)
A lista pode ser de tamanho zero.
public final org.assertj.core.api.AbstractObjectAssert<?,Serializable> assertDefaultModelObject()
public final SELF debugComponentTree()
protected final void debugComponentTree(int level,
org.apache.wicket.Component component)
Copyright © 2018. All rights reserved.