Package spoon.testing

Class AbstractAssert<T extends AbstractAssert<T,​A>,​A>

  • Type Parameters:
    T - the self type of this assertion class.
    A - the type of the actual value.
    Direct Known Subclasses:
    AbstractCtElementAssert, AbstractCtPackageAssert, AbstractFileAssert

    public abstract class AbstractAssert<T extends AbstractAssert<T,​A>,​A>
    extends Object
    Base contract for all assertion objects: the minimum functionality that any assertion object should provide.
    • Constructor Detail

      • AbstractAssert

        protected AbstractAssert​(A actual,
                                 Class<?> selfType)
    • Method Detail

      • withProcessor

        public T withProcessor​(Processor<?> processor)
        Applies the processor on the actual value.
        Parameters:
        processor - the given processor.
        Returns:
        this assertion object.
      • withProcessor

        public T withProcessor​(Class<? extends Processor<?>> processor)
        Applies the processor on the actual value.
        Parameters:
        processor - the class of the given processor.
        Returns:
        this assertion object.
      • withProcessor

        public T withProcessor​(String qualifiedName)
        Applies the processor on the actual value.
        Parameters:
        qualifiedName - the qualified name of the given processor.
        Returns:
        this assertion object.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object