From 0b19e12587e25f51a2f398bb9014b71ff9aacbbd Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 18 Dec 2017 21:52:28 +0300 Subject: xmpp: fix tests --- .../src/test/java/com/juick/configuration/RepositoryConfiguration.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'juick-server-jdbc/src/test') 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(); -- cgit v1.2.3