aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-01-16 14:14:15 +0300
committerGravatar Vitaly Takmazov2016-01-16 14:14:15 +0300
commitb5b9d41d91f038780c8cf29ddacde82087e43a5a (patch)
treedff7227c2fb9c56edba35e6e6ef839619e1330af /src/test
parent093a022955d547e6f94a4204a193c0e7296c11b2 (diff)
drop unneeded dependency, part 2
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/com/juick/tests/ApiTests.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/java/com/juick/tests/ApiTests.java b/src/test/java/com/juick/tests/ApiTests.java
index 046077ef..44cd7c1b 100644
--- a/src/test/java/com/juick/tests/ApiTests.java
+++ b/src/test/java/com/juick/tests/ApiTests.java
@@ -5,10 +5,10 @@ import com.juick.User;
import com.juick.server.UserQueries;
import com.juick.server.MessagesQueries;
import junit.framework.Assert;
-import org.apache.commons.dbcp2.BasicDataSource;
import org.junit.Before;
import org.junit.Test;
import org.springframework.jdbc.core.JdbcTemplate;
+import org.springframework.jdbc.datasource.DriverManagerDataSource;
import java.io.FileInputStream;
import java.io.IOException;
@@ -24,7 +24,7 @@ public class ApiTests {
Properties conf = new Properties();
try {
conf.load(new FileInputStream("/etc/juick/api.conf"));
- BasicDataSource dataSource = new BasicDataSource();
+ DriverManagerDataSource dataSource = new DriverManagerDataSource();
dataSource.setDriverClassName("com.mysql.jdbc.Driver");
dataSource.setUrl("jdbc:mysql://localhost/juick?autoReconnect=true&user="
+ conf.getProperty("mysql_username", "")