Fix tests

This commit is contained in:
Timo Westkämper 2015-01-08 20:44:04 +02:00
parent c8a3ce78df
commit f89b44676f
2 changed files with 12 additions and 5 deletions

View File

@ -354,6 +354,10 @@ public final class Connections {
dropTable(templates, "DATE_TEST");
stmt.execute(CREATE_TABLE_DATETEST);
// numbers
dropTable(templates, "NUMBER_TEST");
stmt.execute("create table NUMBER_TEST(col1 int)");
// xml
dropTable(templates, "XML_TEST");
stmt.execute("create table XML_TEST(COL varchar(128))");

View File

@ -1,9 +1,16 @@
package com.mysema.query;
import static com.mysema.query.Constants.*;
import static com.mysema.query.Target.*;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import java.math.BigDecimal;
import java.sql.SQLException;
import java.util.List;
import org.junit.Test;
import com.google.common.collect.ImmutableList;
import com.mysema.query.sql.Configuration;
import com.mysema.query.sql.ForeignKey;
@ -18,11 +25,6 @@ import com.mysema.query.types.path.NumberPath;
import com.mysema.query.types.path.PathBuilder;
import com.mysema.query.types.query.ListSubQuery;
import com.mysema.testutil.ExcludeIn;
import org.junit.Test;
import static com.mysema.query.Constants.*;
import static com.mysema.query.Target.*;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
public class SubqueriesBase extends AbstractBaseTest {
@ -54,6 +56,7 @@ public class SubqueriesBase extends AbstractBaseTest {
@Test
@SkipForQuoted
@ExcludeIn(DB2) // ID is reserved IN DB2
public void SubQueries() throws SQLException {
// subquery in where block
expectedQuery = "select e.ID from EMPLOYEE e "