Class AbstractTestedPropertyAssertion<T>
- java.lang.Object
-
- eu.tsystems.mms.tic.testframework.internal.asserts.AbstractPropertyAssertion<T>
-
- eu.tsystems.mms.tic.testframework.internal.asserts.AbstractTestedPropertyAssertion<T>
-
- All Implemented Interfaces:
eu.tsystems.mms.tic.testframework.internal.asserts.ActualProperty<T>,eu.tsystems.mms.tic.testframework.logging.Loggable
- Direct Known Subclasses:
DefaultBinaryAssertion,DefaultPatternAssertion
public abstract class AbstractTestedPropertyAssertion<T> extends eu.tsystems.mms.tic.testframework.internal.asserts.AbstractPropertyAssertion<T> implements eu.tsystems.mms.tic.testframework.logging.LoggableAn abstract Property Assertion which performs a test and informs the Assertion Provider about it.
-
-
Field Summary
Fields Modifier and Type Field Description protected static eu.tsystems.mms.tic.testframework.execution.testng.AssertionassertionImplThis instance should always be anDefaultAssertionWrapper
-
Constructor Summary
Constructors Constructor Description AbstractTestedPropertyAssertion(eu.tsystems.mms.tic.testframework.internal.asserts.AbstractPropertyAssertion parentAssertion, eu.tsystems.mms.tic.testframework.internal.asserts.AssertionProvider<T> provider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleantestSequence(eu.tsystems.mms.tic.testframework.internal.asserts.ActualProperty<T> actualProperty, java.util.function.Predicate<T> testFunction, java.util.function.Function<T,java.lang.String> failMessageSupplier)This is the general test sequence-
Methods inherited from class eu.tsystems.mms.tic.testframework.internal.asserts.AbstractPropertyAssertion
createFailMessage, failedFinallyRecursive, failedRecursive, getActual, passedRecursive, wrapAssertionErrorRecursive
-
-
-
-
Constructor Detail
-
AbstractTestedPropertyAssertion
public AbstractTestedPropertyAssertion(eu.tsystems.mms.tic.testframework.internal.asserts.AbstractPropertyAssertion parentAssertion, eu.tsystems.mms.tic.testframework.internal.asserts.AssertionProvider<T> provider)
-
-
Method Detail
-
testSequence
protected boolean testSequence(eu.tsystems.mms.tic.testframework.internal.asserts.ActualProperty<T> actualProperty, java.util.function.Predicate<T> testFunction, java.util.function.Function<T,java.lang.String> failMessageSupplier)
This is the general test sequence- Parameters:
actualProperty- TheActualPropertyto testtestFunction- The testPredicatefailMessageSupplier- The fail messageSupplierwhen the test finally fails.- Returns:
- True if the test passed
-
-