Skip to content

Commit

Permalink
fixed some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xtien committed Feb 3, 2020
1 parent 3c4c23c commit 712e0d5
Show file tree
Hide file tree
Showing 19 changed files with 39 additions and 383 deletions.
Expand Up @@ -44,9 +44,4 @@ public DataSource inmemoryDataSource() {
.password(password)
.build();
}

@Bean(name = "jdbcTemplate")
public JdbcTemplate primaryJdbcTemplate(@Qualifier("datasource") DataSource dataSource) {
return new JdbcTemplate(dataSource);
}
}
Expand Up @@ -14,6 +14,7 @@
import org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean;
import org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter;
import org.springframework.transaction.PlatformTransactionManager;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import javax.persistence.EntityManagerFactory;
import javax.sql.DataSource;
Expand All @@ -22,6 +23,7 @@
@Configuration
@PropertySource({"application.properties", "local.properties"})
@Profile("test")
@EnableTransactionManagement
public class H2EntityManagerConfig {

@Primary
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 712e0d5

Please sign in to comment.