Annotation Interface VerifyMapperConfiguration


To be used in conjunction with MapperTest. Defines the mapper-specific definitions that will be tested.
Author:
Oliver Wolff
  • Element Details

    • equals

      Returns:
      identifies the properties that can be asserted using Object.equals(Object). The format is 'source.attributeName:target.attributeName'. The target.attributeName and source.attributeName must refer to an already defined PropertyMetadata. Sample: @VerifyMapperConfiguration(equals="name:firstName") results in assertEquals(source.getName(),target.getFirstName()
      Default:
      {}
    • notNullNorEmpty

      Returns:
      identifies the properties that change the target but result in a non null element. In case of a Collection it will additionally checked on emptiness The format is 'source.attributeName:target.attributeName'. The target.attributeName and source.attributeName must refer to an already existing PropertyMetadata. Sample: @VerifyMapperConfiguration(notNullNorEmpty="name:lastName") results in the attribute target.getLastName() being not null
      Default:
      {}
    • exclude

      Returns:
      an array of properties, identified by their names that are not to be considered for this test: black-list
      Default:
      {}
    • of

      Returns:
      an array of properties, identified by their names that are to be considered for this test: white-list
      Default:
      {}
    • required

      Returns:
      an array of properties, identified by their names that are to be treated as required properties, see PropertyMetadata.isRequired()
      Default:
      {}
    • defaultValued

      Returns:
      an array of properties, identified by their names that are to be treated as having a default values, see PropertyMetadata.isDefaultValue()
      Default:
      {}
    • readOnly

      Returns:
      an array of properties, identified by their names that are to be treated as being read-only, see PropertyReadWrite.READ_ONLY, usually used in conjunction with defaultValued()
      Default:
      {}
    • writeOnly

      Returns:
      an array of properties, identified by their names that are to be treated as being write-only, see PropertyReadWrite.WRITE_ONLY, usually used in cases where a property to be written will result in other properties but itself can not be accessed directly
      Default:
      {}
    • assertUnorderedCollection

      Returns:
      an array of properties, identified by their names representing at least a Collection that are to be asserted ignoring the concrete order, see PropertyConfig.assertionStrategy() and AssertionStrategy.COLLECTION_IGNORE_ORDER. The default implementation will always respect / assert the same order of elements.
      Default:
      {}