summaryrefslogtreecommitdiffstats
path: root/uitest/src
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2012-08-31 13:54:26 +0300
committerArtur Signell <artur@vaadin.com>2012-09-09 11:23:04 +0300
commitd8a5f96b36946ed315dcf48cc32701e0435bdfaa (patch)
treef7fcf075a47430a9f45cfda652d91f576e32c98c /uitest/src
parenteef56b04b46c6ad202beef58c342dbb5ea0e4f5d (diff)
downloadvaadin-framework-d8a5f96b36946ed315dcf48cc32701e0435bdfaa.tar.gz
vaadin-framework-d8a5f96b36946ed315dcf48cc32701e0435bdfaa.zip
Support running JUnit tests (#9299)
Diffstat (limited to 'uitest/src')
-rw-r--r--uitest/src/com/vaadin/tests/containers/sqlcontainer/DatabaseHelper.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/uitest/src/com/vaadin/tests/containers/sqlcontainer/DatabaseHelper.java b/uitest/src/com/vaadin/tests/containers/sqlcontainer/DatabaseHelper.java
index b7b1e74eb0..5b3b91da63 100644
--- a/uitest/src/com/vaadin/tests/containers/sqlcontainer/DatabaseHelper.java
+++ b/uitest/src/com/vaadin/tests/containers/sqlcontainer/DatabaseHelper.java
@@ -4,7 +4,7 @@ import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;
-import com.vaadin.data.util.sqlcontainer.AllTests;
+import com.vaadin.data.util.sqlcontainer.SQLTestsConstants;
import com.vaadin.data.util.sqlcontainer.SQLContainer;
import com.vaadin.data.util.sqlcontainer.connection.JDBCConnectionPool;
import com.vaadin.data.util.sqlcontainer.connection.SimpleJDBCConnectionPool;
@@ -32,7 +32,7 @@ class DatabaseHelper {
// Will fail if table doesn't exist, which is OK.
conn.rollback();
}
- switch (AllTests.db) {
+ switch (SQLTestsConstants.db) {
case HSQLDB:
statement
.execute("create table "
@@ -78,8 +78,9 @@ class DatabaseHelper {
private void initConnectionPool() {
try {
- connectionPool = new SimpleJDBCConnectionPool(AllTests.dbDriver,
- AllTests.dbURL, AllTests.dbUser, AllTests.dbPwd, 2, 5);
+ connectionPool = new SimpleJDBCConnectionPool(
+ SQLTestsConstants.dbDriver, SQLTestsConstants.dbURL,
+ SQLTestsConstants.dbUser, SQLTestsConstants.dbPwd, 2, 5);
} catch (SQLException e) {
e.printStackTrace();
}