aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-01-16 14:13:11 +0300
committerGravatar Vitaly Takmazov2016-01-16 14:13:11 +0300
commit093a022955d547e6f94a4204a193c0e7296c11b2 (patch)
tree55bba7123a9549055e6001702712fffa35f8e801 /src/test
parentfab3c7d5462cd0b54de3a8cdd377e3476fa90285 (diff)
drop unneeded dependency
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/com/juick/tests/JsonTests.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/java/com/juick/tests/JsonTests.java b/src/test/java/com/juick/tests/JsonTests.java
index 496dea24..795b3429 100644
--- a/src/test/java/com/juick/tests/JsonTests.java
+++ b/src/test/java/com/juick/tests/JsonTests.java
@@ -5,6 +5,8 @@ import com.juick.server.MessagesQueries;
import org.junit.Assert;
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;
@@ -12,8 +14,6 @@ import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.List;
import java.util.Properties;
-import org.apache.commons.dbcp2.BasicDataSource;
-import org.springframework.jdbc.core.JdbcTemplate;
public class JsonTests {
@@ -23,7 +23,7 @@ public class JsonTests {
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", "")