Class ExtendedAssertions
- java.lang.Object
-
- org.assertj.core.api.Assertions
-
- de.hybris.platform.testframework.assertions.assertj.ExtendedAssertions
-
public class ExtendedAssertions extends org.assertj.core.api.AssertionsUtility class that makes it easy to use custom assertions provided by SAP Commerce testframework.This class can be used instead of
Assertions, even in static import, ex:import static de.hybris.platform.testframework.assertions.assertj.ExtendedAssertions.assertThat;With such import you can use both built-in and custom assertions with simpleassertThat(obj)
-
-
Constructor Summary
Constructors Constructor Description ExtendedAssertions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MediaAssertassertThat(MediaModel actual)static MediaAssertassertThat(Media actual)static ModelStateAssertassertThat(AbstractItemModel actual)static InputStreamAssertassertThat(java.io.InputStream actual)-
Methods inherited from class org.assertj.core.api.Assertions
allOf, allOf, anyOf, anyOf, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThatExceptionOfType, assertThatThrownBy, atIndex, catchThrowable, contentOf, contentOf, contentOf, contentOf, contentOf, contentOf, doesNotHave, entry, extractProperty, extractProperty, fail, fail, failBecauseExceptionWasNotThrown, filter, filter, in, linesOf, linesOf, linesOf, linesOf, linesOf, linesOf, not, not, notIn, offset, offset, registerCustomDateFormat, registerCustomDateFormat, registerFormatterForType, setAllowComparingPrivateFields, setAllowExtractingPrivateFields, setLenientDateParsing, setMaxLengthForSingleLineDescription, setRemoveAssertJRelatedElementsFromStackTrace, shouldHaveThrown, tuple, useDefaultDateFormatsOnly, useDefaultRepresentation, useRepresentation, within, within, within, within, within, within, within, withinPercentage, withinPercentage, withinPercentage, withPrecision, withPrecision
-
-
-
-
Method Detail
-
assertThat
public static InputStreamAssert assertThat(java.io.InputStream actual)
-
assertThat
public static MediaAssert assertThat(Media actual)
-
assertThat
public static MediaAssert assertThat(MediaModel actual)
-
assertThat
public static ModelStateAssert assertThat(AbstractItemModel actual)
-
-