diff options
author | 2017-12-18 21:52:28 +0300 | |
---|---|---|
committer | 2017-12-18 21:52:28 +0300 | |
commit | 0b19e12587e25f51a2f398bb9014b71ff9aacbbd (patch) | |
tree | 1f3de3b3b49bc436cc242f5d33a40132e8dfbeb6 /juick-server-jdbc/src | |
parent | 86118361420b2d441e824e4f113a1f4f4c75664b (diff) |
xmpp: fix tests
Diffstat (limited to 'juick-server-jdbc/src')
-rw-r--r-- | juick-server-jdbc/src/test/java/com/juick/configuration/RepositoryConfiguration.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/juick-server-jdbc/src/test/java/com/juick/configuration/RepositoryConfiguration.java b/juick-server-jdbc/src/test/java/com/juick/configuration/RepositoryConfiguration.java index 94031944..72968e8e 100644 --- a/juick-server-jdbc/src/test/java/com/juick/configuration/RepositoryConfiguration.java +++ b/juick-server-jdbc/src/test/java/com/juick/configuration/RepositoryConfiguration.java @@ -25,6 +25,7 @@ import com.juick.service.search.SearchService; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; +import org.springframework.context.annotation.DependsOn; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.jdbc.datasource.DriverManagerDataSource; @@ -49,7 +50,7 @@ public class RepositoryConfiguration { return db; } - + @DependsOn("db") @Bean public DataSource dataSource() { DriverManagerDataSource dataSource = new DriverManagerDataSource(); |