@Test public void initTransactionPluginTest2() { InitState initState = pluginUnderTest.init( mockInitContext(LocalTransactionManager.class, TransactionHandlerTestImpl.class)); Object object = pluginUnderTest.nativeUnitModule(); Assertions.assertThat(object).isNotNull(); Assertions.assertThat(object).isInstanceOf(TransactionModule.class); Set<TransactionMetadataResolver> transactionMetadataResolvers = Reflection.field( "transactionMetadataResolvers").ofType(new TypeRef<Set<TransactionMetadataResolver>>() { }).in(pluginUnderTest).get(); Assertions.assertThat(transactionMetadataResolvers).isNotNull(); TransactionManager transactionManager = Reflection.field("transactionManager").ofType( TransactionManager.class).in(pluginUnderTest).get(); Assertions.assertThat(transactionManager).isNotNull(); Assertions.assertThat(initState).isEqualTo(InitState.INITIALIZED); }
@Override public Object nativeUnitModule() { return new TransactionModule( this.transactionManager, this.transactionMetadataResolvers ); }
TransactionPlugin extends AbstractSeedPlugin { @Override public Object nativeUnitModule() { return new TransactionModule( this.transactionManager, this.transactionMetadataResolvers ); } }
TransactionPlugin extends AbstractSeedPlugin { @Override public Object nativeUnitModule() { return new TransactionModule( this.transactionManager, this.transactionMetadataResolvers ); }  }
TransactionPlugin extends AbstractSeedPlugin { @Override public Object nativeUnitModule() { return new TransactionModule( this.transactionManager, this.transactionMetadataResolvers ); }  @Override String name(); @Override Collection<ClasspathScanRequest> classpathScanRequests(); @Override InitState initialize(InitContext initContext); @Override Object nativeUnitModule(); boolean isTransactional(Method method); }
TransactionPlugin extends AbstractSeedPlugin { @Override public Object nativeUnitModule() { return new TransactionModule( this.transactionManager, this.transactionMetadataResolvers ); }  @Override String name(); @Override Collection<ClasspathScanRequest> classpathScanRequests(); @Override InitState initialize(InitContext initContext); @Override Object nativeUnitModule(); boolean isTransactional(Method method);  }