Search in sources :

Example 41 with ExcludeIn

use of com.querydsl.core.testutil.ExcludeIn in project querydsl by querydsl.

the class InsertBase method insert_with_keys.

@Test
@ExcludeIn({ CUBRID, SQLSERVER })
public void insert_with_keys() throws SQLException {
    ResultSet rs = insert(survey).set(survey.name, "Hello World").executeWithKeys();
    assertTrue(rs.next());
    assertTrue(rs.getObject(1) != null);
    rs.close();
}
Also used : ResultSet(java.sql.ResultSet) Test(org.junit.Test) ExcludeIn(com.querydsl.core.testutil.ExcludeIn)

Aggregations

ExcludeIn (com.querydsl.core.testutil.ExcludeIn)41 Test (org.junit.Test)39 Tuple (com.querydsl.core.Tuple)10 SQLInsertClause (com.querydsl.sql.dml.SQLInsertClause)6 ResultSet (java.sql.ResultSet)6 SAnimal (com.querydsl.jpa.domain.sql.SAnimal)4 QEmployee (com.querydsl.sql.domain.QEmployee)4 BigDecimal (java.math.BigDecimal)4 Date (java.sql.Date)4 Ignore (org.junit.Ignore)4 AbstractBaseTest (com.querydsl.sql.AbstractBaseTest)3 Group (com.querydsl.core.group.Group)2 IncludeIn (com.querydsl.core.testutil.IncludeIn)2 BigInteger (java.math.BigInteger)2 Timestamp (java.sql.Timestamp)2 AtomicBoolean (java.util.concurrent.atomic.AtomicBoolean)2 MockTuple (com.querydsl.core.group.MockTuple)1 Expression (com.querydsl.core.types.Expression)1 BooleanExpression (com.querydsl.core.types.dsl.BooleanExpression)1 StringPath (com.querydsl.core.types.dsl.StringPath)1