Class IgnoreField

java.lang.Object
org.axonframework.test.matchers.IgnoreField
All Implemented Interfaces:
FieldFilter

public class IgnoreField extends Object implements FieldFilter
FieldFilter implementation that rejects a given Field
Since:
2.4.1
Author:
Allard Buijze
  • Constructor Summary

    Constructors
    Constructor
    Description
    IgnoreField(Class<?> clazz, String fieldName)
    Initialize an instance that ignores the a field with given fieldName, which is declared on the given clazz.
    Initialize an instance that ignores the given field
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    accept(Field field)
    Indicates whether the given field should be accepted for processing, or skipped/ignored.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • IgnoreField

      public IgnoreField(Field field)
      Initialize an instance that ignores the given field
      Parameters:
      field - The field to ignore
    • IgnoreField

      public IgnoreField(Class<?> clazz, String fieldName)
      Initialize an instance that ignores the a field with given fieldName, which is declared on the given clazz.
      Parameters:
      clazz - The type that declares the field
      fieldName - The name of the field
      Throws:
      FixtureExecutionException - when the given fieldName is not declared on given clazz.
  • Method Details

    • accept

      public boolean accept(Field field)
      Description copied from interface: FieldFilter
      Indicates whether the given field should be accepted for processing, or skipped/ignored.
      Specified by:
      accept in interface FieldFilter
      Parameters:
      field - The field to evaluate
      Returns:
      true when the field should be processed, otherwise false