Polish "Stop JtaAutoConfiguration from enabling JtaProperties when not used"
Closes gh-15550
This commit is contained in:
parent
0b29da14b3
commit
bfd63ab085
|
@ -172,8 +172,7 @@ public class JtaAutoConfigurationTests {
|
||||||
.of("spring.jta.atomikos.connectionfactory.minPoolSize:5",
|
.of("spring.jta.atomikos.connectionfactory.minPoolSize:5",
|
||||||
"spring.jta.atomikos.connectionfactory.maxPoolSize:10")
|
"spring.jta.atomikos.connectionfactory.maxPoolSize:10")
|
||||||
.applyTo(this.context);
|
.applyTo(this.context);
|
||||||
this.context.register(AtomikosJtaConfiguration.class,
|
this.context.register(AtomikosJtaConfiguration.class, PoolConfiguration.class);
|
||||||
PoolConfiguration.class);
|
|
||||||
this.context.refresh();
|
this.context.refresh();
|
||||||
AtomikosConnectionFactoryBean connectionFactory = this.context
|
AtomikosConnectionFactoryBean connectionFactory = this.context
|
||||||
.getBean(AtomikosConnectionFactoryBean.class);
|
.getBean(AtomikosConnectionFactoryBean.class);
|
||||||
|
@ -188,8 +187,7 @@ public class JtaAutoConfigurationTests {
|
||||||
.of("spring.jta.bitronix.connectionfactory.minPoolSize:5",
|
.of("spring.jta.bitronix.connectionfactory.minPoolSize:5",
|
||||||
"spring.jta.bitronix.connectionfactory.maxPoolSize:10")
|
"spring.jta.bitronix.connectionfactory.maxPoolSize:10")
|
||||||
.applyTo(this.context);
|
.applyTo(this.context);
|
||||||
this.context.register(BitronixJtaConfiguration.class,
|
this.context.register(BitronixJtaConfiguration.class, PoolConfiguration.class);
|
||||||
PoolConfiguration.class);
|
|
||||||
this.context.refresh();
|
this.context.refresh();
|
||||||
PoolingConnectionFactoryBean connectionFactory = this.context
|
PoolingConnectionFactoryBean connectionFactory = this.context
|
||||||
.getBean(PoolingConnectionFactoryBean.class);
|
.getBean(PoolingConnectionFactoryBean.class);
|
||||||
|
@ -204,8 +202,7 @@ public class JtaAutoConfigurationTests {
|
||||||
.of("spring.jta.atomikos.datasource.minPoolSize:5",
|
.of("spring.jta.atomikos.datasource.minPoolSize:5",
|
||||||
"spring.jta.atomikos.datasource.maxPoolSize:10")
|
"spring.jta.atomikos.datasource.maxPoolSize:10")
|
||||||
.applyTo(this.context);
|
.applyTo(this.context);
|
||||||
this.context.register(AtomikosJtaConfiguration.class,
|
this.context.register(AtomikosJtaConfiguration.class, PoolConfiguration.class);
|
||||||
PoolConfiguration.class);
|
|
||||||
this.context.refresh();
|
this.context.refresh();
|
||||||
AtomikosDataSourceBean dataSource = this.context
|
AtomikosDataSourceBean dataSource = this.context
|
||||||
.getBean(AtomikosDataSourceBean.class);
|
.getBean(AtomikosDataSourceBean.class);
|
||||||
|
@ -220,8 +217,7 @@ public class JtaAutoConfigurationTests {
|
||||||
.of("spring.jta.bitronix.datasource.minPoolSize:5",
|
.of("spring.jta.bitronix.datasource.minPoolSize:5",
|
||||||
"spring.jta.bitronix.datasource.maxPoolSize:10")
|
"spring.jta.bitronix.datasource.maxPoolSize:10")
|
||||||
.applyTo(this.context);
|
.applyTo(this.context);
|
||||||
this.context.register(BitronixJtaConfiguration.class,
|
this.context.register(BitronixJtaConfiguration.class, PoolConfiguration.class);
|
||||||
PoolConfiguration.class);
|
|
||||||
this.context.refresh();
|
this.context.refresh();
|
||||||
PoolingDataSourceBean dataSource = this.context
|
PoolingDataSourceBean dataSource = this.context
|
||||||
.getBean(PoolingDataSourceBean.class);
|
.getBean(PoolingDataSourceBean.class);
|
||||||
|
|
Loading…
Reference in New Issue