@EnableMats @Configuration @Role(value=2) public class MatsTestInfrastructureConfiguration extends java.lang.Object
@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.Modifier and Type | Field and Description |
---|---|
protected org.springframework.beans.factory.ObjectProvider<javax.sql.DataSource> |
_dataSource |
protected org.springframework.beans.factory.ObjectProvider<MatsSerializer<?>> |
_matsSerializer |
protected org.springframework.beans.factory.ObjectProvider<org.springframework.transaction.PlatformTransactionManager> |
_platformTransactionManagerObjectProvider |
Constructor and Description |
---|
MatsTestInfrastructureConfiguration() |
Modifier and Type | Method and Description |
---|---|
protected MatsFactory |
testMatsFactory() |
protected MatsFuturizer |
testMatsFuturizer(MatsFactory matsFactory) |
protected MatsInitiator |
testMatsInitiator(MatsFactory matsFactory) |
protected MatsTestLatch |
testMatsTestLatch() |
protected MatsTestBrokerInterface |
testMatsTestMqInterface() |
@Autowired protected org.springframework.beans.factory.ObjectProvider<MatsSerializer<?>> _matsSerializer
@Autowired protected org.springframework.beans.factory.ObjectProvider<javax.sql.DataSource> _dataSource
@Autowired protected org.springframework.beans.factory.ObjectProvider<org.springframework.transaction.PlatformTransactionManager> _platformTransactionManagerObjectProvider
@Bean protected MatsFactory testMatsFactory()
@Bean protected MatsTestBrokerInterface testMatsTestMqInterface()
@Bean protected MatsInitiator testMatsInitiator(MatsFactory matsFactory)
@Bean protected MatsTestLatch testMatsTestLatch()
@Bean @Lazy protected MatsFuturizer testMatsFuturizer(MatsFactory matsFactory)