Search in sources :

Example 16 with ColumnDescription

use of com.axway.ats.core.dbaccess.ColumnDescription in project ats-framework by Axway.

the class Test_ColumnDescription method isTypeBinaryNegative.

@Test
public void isTypeBinaryNegative() {
    ColumnDescription columnDescription = new ColumnDescription("name", "char binary");
    assertFalse(columnDescription.isTypeBinary());
    columnDescription = new ColumnDescription("name", "varchar binary(5)");
    assertFalse(columnDescription.isTypeBinary());
}
Also used : ColumnDescription(com.axway.ats.core.dbaccess.ColumnDescription) BaseTest(com.axway.ats.environment.BaseTest) Test(org.junit.Test)

Example 17 with ColumnDescription

use of com.axway.ats.core.dbaccess.ColumnDescription in project ats-framework by Axway.

the class Test_ColumnDescription method isTypeBitPositive.

@Test
public void isTypeBitPositive() {
    ColumnDescription columnDescription = new ColumnDescription("name", "bit");
    assertTrue(columnDescription.isTypeBit());
}
Also used : ColumnDescription(com.axway.ats.core.dbaccess.ColumnDescription) BaseTest(com.axway.ats.environment.BaseTest) Test(org.junit.Test)

Aggregations

ColumnDescription (com.axway.ats.core.dbaccess.ColumnDescription)17 BaseTest (com.axway.ats.environment.BaseTest)7 ArrayList (java.util.ArrayList)7 Test (org.junit.Test)7 DbRecordValuesList (com.axway.ats.core.dbaccess.DbRecordValuesList)6 DbException (com.axway.ats.core.dbaccess.exceptions.DbException)3 ColumnHasNoDefaultValueException (com.axway.ats.environment.database.exceptions.ColumnHasNoDefaultValueException)3 MssqlColumnDescription (com.axway.ats.core.dbaccess.MssqlColumnDescription)2 OracleColumnDescription (com.axway.ats.core.dbaccess.OracleColumnDescription)2 DbQuery (com.axway.ats.common.dbaccess.DbQuery)1 DbRecordValue (com.axway.ats.core.dbaccess.DbRecordValue)1 MysqlColumnDescription (com.axway.ats.core.dbaccess.MysqlColumnDescription)1 CassandraDbProvider (com.axway.ats.core.dbaccess.cassandra.CassandraDbProvider)1 DatabaseEnvironmentCleanupException (com.axway.ats.environment.database.exceptions.DatabaseEnvironmentCleanupException)1 DbTable (com.axway.ats.environment.database.model.DbTable)1 List (java.util.List)1 Map (java.util.Map)1 Entry (java.util.Map.Entry)1 Set (java.util.Set)1