All Classes and Interfaces
Class
Description
ParameterizedInstantiator
for cases you actually are not able to use
the testing Infrastructure but want to benefit of the testing of the
ObjectTestContract
sBase class for creating objects with a fixed set of parameter to be used.
Simple helper class dealing with annotation on the test-base classes.
Generator for different types of arrays.
Types of this object defines the the way how to deal with equality regarding
PropertySupport.assertValueSet(Object)
Tests all given properties according to the given List of
PropertyMetadata
Used for creating instances of a builder.
Defines basic tests for builder.
Used for creating instances of a builder.
Simple interface used for dynamically creating builder objects.
Extensions of
PropertyMetadata
that deals with builder-specific
aspectsBuilder for instances of
BuilderMetadata
Utility class for dealing with and the
PropertyBuilderConfig
and
PropertyBuilderConfigs
annotations.Delegate to
ParameterizedInstantiator
that calls
ConfigurationCallBackHandler.configure(Object)
after creation of the
object.Helper class for asserts on Collection level
Used for static intersection of collection-types.
Generator for Iterable / Collection interfaces
Defines a callback-method in case of further configuration of concrete
test-objects.
This
ParameterizedInstantiator
uses a constructor derived by the
given RuntimeProperties#getAllProperties()
in order to instantiate
Object
sHelper class handling the registration of
TestContract
sTestContract for dealing Constructor and factories,
VerifyConstructor
and VerifyFactoryMethod
respectivelyInstantiator for any class that provide a public accessible default
constructor
Dummy variant of
TypedGenerator
that are used in some corner cases,
where you need a TypedGenerator
for a contract, but do not need the
generated values.Creates proxies using javassist for any type given that is not an interface
nor annotation nor enum.
This generator acts always dynamically
Always generates an empty immutable map
Enables the test-generator handling, see
GeneratorRegistry
for
details.Helper class providing base functionality for test for the
Object.equals(Object)
and Object.hashCode()
variants of
classes.Helper class used for accessing an exception message in a general way
This
ParameterizedInstantiator
uses a factory method derived by the
given RuntimeProperties#getAllProperties()
in order to instantiate
Object
sProvides utility methods for dealing with the creation of
TypedGenerator
usually in conjunction with annotationsInterface providing the capability for handling the
TypedGeneratorRegistry
programmatically.This extension handles the test-generator handling, see
GeneratorRegistry
for detailsProvides strategies for creating objects dynamically
An
IdentityResourceBundle
is helpful for tests where you want to
ensure that a certain message key is used to create a message but do not want
to test the actual ResourceBundle
mechanism itself, what is the case
for many tests.Variant of
ParameterizedInstantiator
that deals with test, where the
actual beans to be tested are Injected by cdi, see TestObjectProvider
as wellCreates proxies for given interfaces, should only be used as last line of
defense.
Factory for creating instances
PropertyMetadata
for standard
java-types and primitives.Helper class for asserting single-attribute mappings for
VerifyMapperConfiguration
Defines tests for Mapper
Allows to test a mapper implementing a
Function
to map a (pseudo-)DTO
object based on whatever technology (FHIR, ...) to a DTO object.Utility class for dealing with
ObjectTestContracts
and the
VetoObjectTestContract
and VetoObjectTestContracts
annotations.Defines the method for testing the correctness of
Object
related
tests, see ObjectContractTestSupport.shouldImplementObjectContracts()
TestContract for dealing Constructor and factories,
VerifyConstructor
and VerifyFactoryMethod
respectivelyAn
ObjectInstantiator
creates objects without further parameter, e.g.Simple annotation for extended configuration of
ObjectTestContract
.An
ObjectTestContract
provides a method that again runs a number of
asserts regarding the canonical Object
method.Shorthand identifier / factory for the individual test contracts
Abstraction of certain ways for creating and populating test-objects .
Defines different ways for reading / writing properties.
Base class for dynamically testing properties.
While the test classes are capable of auto-detecting JavaProperties you need
to adjust them from time to time.
Wraps a number of
PropertyBuilderConfig
elements.While the test classes are capable of auto-detecting JavaProperties you need
to adjust them from time to time.
Wraps a number of
PropertyConfig
elements.Used for adding an additional
TypedGenerator
for the actual
test-class.For some cases it is simpler to give a hint for a certain type instead of
declaring
PropertyGenerator
.Wraps a number of
PropertyGenerator
elements.Wraps a number of
PropertyGenerator
elements.Provides utility methods for dealing with
PropertyMetadata
Represents runtime information for a certain property.
Gathers all information needed for dynamically creating / asserting
properties.
While the test classes are capable of auto-detecting JavaProperties you need
to adjust them from time to time.
Stateful wrapper around instances of
PropertyMetadata
that provides
methods for reading / asserting properties according to the configured
PropertyAccessStrategy
, see PropertySupport.apply(Object)
,
PropertySupport.assertValueSet(Object)
and PropertySupport.assertDefaultValue(Object)
.Simple Helper for reflection-api.
Aggregates all information necessary to dynamically create Objects.
Tests whether the object in hand implements
Serializable
and than
serializes / deserializes the object, and compares the newly created object
with the original by using Object.equals(Object)
Simple check whether the returned
TestObjectProvider.getUnderTest()
returns a non-null valueSimple check whether the returned
TestObjectProvider.getUnderTest()
implements Serializable
correctlyCombination of all test-object contracts
ShouldBeNotNull
,
ShouldBeSerializable
, ShouldImplementEqualsAndHashCode
,
ShouldImplementToString
Simple check whether the returned
TestObjectProvider.getUnderTest()
implements Object.equals(Object)
and Object.hashCode()
Simple check whether the
TestObjectProvider.getUnderTest()
implements
Object.equals(Object)
and Object.hashCode()
Simple Helper that shuffle lower / uppercase for strings.
A
TestContract
provides a method that again runs a number of asserts.Helper interface for integrating the test-framework with arbitrary tests.
Checks whether the object in hand implements
Object.toString()
and
calls it will fully populated object.Registry for instances of
TypedGenerator
Base-class for running tests on value-objects.
If used on ValueObjectTest this test checks / tests all Bean-properties.
If used on ValueObjectTest this test checks / tests builder of value objects.
If used on ValueObjectTest this test checks / tests constructors.
Wraps a number of
VerifyConstructor
elements.If used on ValueObjectTest this test verifies a copy-constructor.
If used on ValueObjectTest this test checks / tests factory-methods.
Wraps a number of
VerifyFactoryMethod
elements.To be used in conjunction with
MapperTest
.In contrast to
VetoObjectTestContract
that is designed for cases
where the tests run all ObjectTestConfig
, e.g.Wraps a number of
VerifyObjectTestContract
elements.A contract Veto is used for suppressing certain test-contracts.
Wraps a number of
VetoObjectTestContract
elements.This Veto is used to exclude specific object types from tests using class
path scanning, like .
Hard-core implementation for reflection based corner-cases