Package io.mats3.test.jupiter
Mats3 testing tools for Jupiter (JUnit 5).
-
Interface Summary Interface Description MatsTest.SerializerFactory Factory interface for creating aMatsSerializerinstance. -
Class Summary Class Description Extension_Mats Provides a full MATS harness for unit testing by creatingMatsFactoryutilizing an in-vm Active MQ broker, and optionally aTestH2DataSourcefor database tests.Extension_MatsAnnotatedClass Helper class to test Mats3 Endpoints which are defined using the Mats3 SpringConfig annotations, but without using the full Spring harness for testing.Extension_MatsEndpoint<R,I> Extension to create a single staged endpoint whose reply/processor can be changed throughout its life, i.e.MatsTest.Extension_MatsRegistration Extension to create and register theExtension_Matsinto the test context.MatsTest.FieldProcess_MatsTestAnnotations Extension to support theMatsTest.MatsTestEndpointandMatsTest.MatsTestAnnotatedClassannotations on fields in test classes.MatsTest.ParameterResolver_MatsEntities ParameterResolved to provide properties from theExtension_Matsas parameters to test instances' test methods, and constructor injection.MatsTest.SerializerFactoryJson Default serializer factory for creating aMatsSerializerJsoninstance. -
Annotation Types Summary Annotation Type Description MatsTest Convenience composite annotation for providing test infrastructure for Mats3 testing - notably what you get from the Jupiter extensionExtension_Mats- as well as support for instantiating and registering endpoints as provided by the extensionsExtension_MatsEndpointandExtension_MatsAnnotatedClassby use of the two sub-annotationsMatsTestEndpointandMatsTestAnnotatedClass, and with the MatsTest annotation parameterMatsTest.matsAnnotatedClasses().MatsTest.MatsTestAnnotatedClass Marks a field that has Mats annotations, like MatsMapping or MatsClassMapping.MatsTest.MatsTestEndpoint Field annotation on fields of typeExtension_MatsEndpoint.