Skip to content

Commit a1384c5

Browse files
committed
fixed the running tests, thanks to Eduardo Macarron
1 parent b991e2d commit a1384c5

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,13 @@
588588
<scope>test</scope>
589589
</dependency>
590590

591+
<dependency>
592+
<groupId>cglib</groupId>
593+
<artifactId>cglib-nodep</artifactId>
594+
<version>2.2</version>
595+
<scope>test</scope>
596+
</dependency>
597+
591598
<dependency>
592599
<groupId>hsqldb</groupId>
593600
<artifactId>hsqldb</artifactId>

src/test/java/flavour/SpringConfig.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,13 @@
3232
@Configuration
3333
public class SpringConfig {
3434

35-
private final DataSource dataSource;
35+
private final PooledDataSource dataSource;
3636

3737
private final SqlSessionFactory sessionFactory;
3838

3939
public SpringConfig() throws Exception {
4040
this.dataSource = new PooledDataSource("org.hsqldb.jdbcDriver", "jdbc:hsqldb:file:mybatisspring", "sa", "");
41+
this.dataSource.setDefaultAutoCommit(true);
4142

4243
SqlSessionFactoryBean factoryBean = new SqlSessionFactoryBean();
4344
factoryBean.setConfigLocation(new ClassPathResource("flavour/SpringMybatis.xml"));

0 commit comments

Comments
 (0)