Package org.axonframework.test.matchers
Class IgnoreField
java.lang.Object
org.axonframework.test.matchers.IgnoreField
- All Implemented Interfaces:
FieldFilter
FieldFilter implementation that rejects a given Field
- Since:
- 2.4.1
- Author:
- Allard Buijze
-
Constructor Summary
ConstructorsConstructorDescriptionIgnoreField(Class<?> clazz, String fieldName) Initialize an instance that ignores the a field with givenfieldName, which is declared on the givenclazz.IgnoreField(Field field) Initialize an instance that ignores the givenfield -
Method Summary
-
Constructor Details
-
IgnoreField
Initialize an instance that ignores the givenfield- Parameters:
field- The field to ignore
-
IgnoreField
Initialize an instance that ignores the a field with givenfieldName, which is declared on the givenclazz.- Parameters:
clazz- The type that declares the fieldfieldName- The name of the field- Throws:
FixtureExecutionException- when the given fieldName is not declared on given clazz.
-
-
Method Details
-
accept
Description copied from interface:FieldFilterIndicates whether the givenfieldshould be accepted for processing, or skipped/ignored.- Specified by:
acceptin interfaceFieldFilter- Parameters:
field- The field to evaluate- Returns:
truewhen the field should be processed, otherwisefalse
-