org.axonframework.test.matchers
Class IgnoreField

java.lang.Object
  extended by 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
IgnoreField(Class<?> clazz, String fieldName)
          Initialize an instance that ignores the a field with given fieldName, which is declared on the given clazz.
IgnoreField(Field field)
          Initialize an instance that ignores the given field
 
Method Summary
 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 Detail

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 Detail

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


Copyright © 2010-2016. All Rights Reserved.