Class 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.Loggable
    An 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.Assertion assertionImpl
      This instance should always be an DefaultAssertionWrapper
      • Fields inherited from class eu.tsystems.mms.tic.testframework.internal.asserts.AbstractPropertyAssertion

        config, parent, propertyAssertionFactory, provider
      • Fields inherited from interface eu.tsystems.mms.tic.testframework.logging.Loggable

        prompt
    • 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 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
      • Methods inherited from class eu.tsystems.mms.tic.testframework.internal.asserts.AbstractPropertyAssertion

        createFailMessage, failedFinallyRecursive, failedRecursive, getActual, passedRecursive, wrapAssertionErrorRecursive
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface eu.tsystems.mms.tic.testframework.logging.Loggable

        log
    • Field Detail

      • assertionImpl

        protected static final eu.tsystems.mms.tic.testframework.execution.testng.Assertion assertionImpl
        This instance should always be an DefaultAssertionWrapper
    • 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 - The ActualProperty to test
        testFunction - The test Predicate
        failMessageSupplier - The fail message Supplier when the test finally fails.
        Returns:
        True if the test passed