Package org.xmlunit.assertj
Class CustomAbstractAssert<SELF extends CustomAbstractAssert<SELF,ACTUAL>,ACTUAL>
- java.lang.Object
-
- org.assertj.core.api.AbstractAssert<SELF,ACTUAL>
-
- org.xmlunit.assertj.CustomAbstractAssert<SELF,ACTUAL>
-
- All Implemented Interfaces:
org.assertj.core.api.Assert<SELF,ACTUAL>
,org.assertj.core.api.Descriptable<SELF>
,org.assertj.core.api.ExtensionPoints<SELF,ACTUAL>
- Direct Known Subclasses:
CompareAssert
abstract class CustomAbstractAssert<SELF extends CustomAbstractAssert<SELF,ACTUAL>,ACTUAL> extends org.assertj.core.api.AbstractAssert<SELF,ACTUAL>
AbstractAssert allow only to throw errors extending ErrorMessageFactory. CustomAbstractAssert allow to throw errors that based on AssertionErrorFactory.- Since:
- XMLUnit 2.6.1
- See Also:
AbstractAssert.throwAssertionError(org.assertj.core.error.ErrorMessageFactory)
,ComparisonFailureErrorFactory
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
ORG_XMLUNIT_ASSERTJ_ERROR
-
Constructor Summary
Constructors Constructor Description CustomAbstractAssert(ACTUAL actual, java.lang.Class<?> selfType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private boolean
isElementOfCustomAssert(java.lang.StackTraceElement stackTraceElement)
private void
removeCustomAssertRelatedElementsFromStackTraceIfNeeded(java.lang.AssertionError assertionError)
(package private) void
throwAssertionError(org.assertj.core.error.AssertionErrorFactory assertionErrorFactory)
-
Methods inherited from class org.assertj.core.api.AbstractAssert
as, as, asInstanceOf, asList, asString, describedAs, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, equals, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, 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, newListAssertInstance, overridingErrorMessage, satisfies, satisfies, satisfiesAnyOf, satisfiesAnyOf, setCustomRepresentation, throwAssertionError, usingComparator, usingComparator, usingDefaultComparator, withFailMessage, withRepresentation, withThreadDumpOnError
-
-
-
-
Field Detail
-
ORG_XMLUNIT_ASSERTJ_ERROR
private static final java.lang.String ORG_XMLUNIT_ASSERTJ_ERROR
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CustomAbstractAssert
CustomAbstractAssert(ACTUAL actual, java.lang.Class<?> selfType)
-
-
Method Detail
-
throwAssertionError
void throwAssertionError(org.assertj.core.error.AssertionErrorFactory assertionErrorFactory)
-
removeCustomAssertRelatedElementsFromStackTraceIfNeeded
private void removeCustomAssertRelatedElementsFromStackTraceIfNeeded(java.lang.AssertionError assertionError)
-
isElementOfCustomAssert
private boolean isElementOfCustomAssert(java.lang.StackTraceElement stackTraceElement)
-
-