Package io.mats3.spring.test
Class MatsTestInfrastructureConfiguration
java.lang.Object
io.mats3.spring.test.MatsTestInfrastructureConfiguration
- Direct Known Subclasses:
MatsTestInfrastructureDbConfiguration
Spring
@Configuration
class that cooks up the simple test infrastructure, employing a
MatsSerializer
from the Spring context if available, otherwise creates a default MatsSerializerJson
.
There is very little magic with this convenience test infrastructure configuration, you could just as well have made
these beans yourself - just check the code!
Provided beans:
MatsFactory
.MatsInitiator
from the MatsFactory.MatsTestBrokerInterface
that "hooks in" to the underlying MQ instance, providing (for now) DLQ access.MatsTestLatch
for convenience (if you need to signal from e.g. a Terminator to the @Test method.MatsFuturizer
(lazily created if needed), backed by the MatsFactory.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.beans.factory.ObjectProvider<DataSource>
protected org.springframework.beans.factory.ObjectProvider<MatsSerializer<?>>
protected org.springframework.beans.factory.ObjectProvider<org.springframework.transaction.PlatformTransactionManager>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected MatsFactory
protected MatsFuturizer
testMatsFuturizer
(MatsFactory matsFactory) protected MatsInitiator
testMatsInitiator
(MatsFactory matsFactory) protected MatsTestLatch
protected MatsTestBrokerInterface
-
Field Details
-
_matsSerializer
@Autowired protected org.springframework.beans.factory.ObjectProvider<MatsSerializer<?>> _matsSerializer -
_dataSource
-
_platformTransactionManagerObjectProvider
@Autowired protected org.springframework.beans.factory.ObjectProvider<org.springframework.transaction.PlatformTransactionManager> _platformTransactionManagerObjectProvider
-
-
Constructor Details
-
MatsTestInfrastructureConfiguration
public MatsTestInfrastructureConfiguration()
-
-
Method Details
-
testMatsFactory
-
testMatsTestMqInterface
-
testMatsInitiator
-
testMatsTestLatch
-
testMatsFuturizer
-