Package spoon.testing

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

java.lang.Object
spoon.testing.AbstractAssert<T,​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.
  • Field Details

  • Constructor Details

    • AbstractAssert

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

    • 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