class MockFieldDefinitions extends FieldDefinitions
A mock of the FieldDefinitions, designed to easily create the field definitions needed for marker and related testing.
Constructor and description |
---|
MockFieldDefinitions
(java.util.Map<java.lang.String, java.lang.Object> fields) Convenience constructor where each entry in the map defines a single field. |
MockFieldDefinitions
(java.util.List fieldDefs) Creates a FieldDefinitions holder for multiple fields of simple type (String/40 or a specific field def). |
MockFieldDefinitions
() |
Type Params | Return Type | Name and description |
---|---|---|
|
boolean |
isSimple(java.lang.Class clazz) Determines if the class is a simple class for field definition purposes. |
Convenience constructor where each entry in the map defines a single field.
fields
- The map of fields. The key is the field name, the value is the type (a Class).Creates a FieldDefinitions holder for multiple fields of simple type (String/40 or a specific field def).
fieldDefs
- The list of field names or field definitions. If a field starts with a '*', then it is marked as required.