use of org.obeonetwork.dsl.database.Column in project InformationSystem by ObeoNetwork.
the class ColumnServicesTest method isUniqueCheckTest.
@Test
public void isUniqueCheckTest() {
Table table = getGSSerieTable();
Column col = getColumn(table, "GS_SERIE_NOM");
assertEquals("X", new ColumnServices().checkUnique(col));
}
use of org.obeonetwork.dsl.database.Column in project InformationSystem by ObeoNetwork.
the class ColumnServicesTest method isPrimaryKeyNullTest.
@Test
public void isPrimaryKeyNullTest() {
Table table = getGSSerieTable();
Column col = getColumn(table, "No table");
assertEquals("No", new ColumnServices().isInPrimaryKey(col));
}
use of org.obeonetwork.dsl.database.Column in project InformationSystem by ObeoNetwork.
the class ColumnServicesTest method isAutoincrementNullTest.
@Test
public void isAutoincrementNullTest() {
Table table = getGSSerieTable();
Column col = getColumn(table, "No table");
assertEquals("No", new ColumnServices().isAutoincrement(col));
}
use of org.obeonetwork.dsl.database.Column in project InformationSystem by ObeoNetwork.
the class ColumnServicesTest method checkNullableNullTest.
@Test
public void checkNullableNullTest() {
Table table = getGSSerieTable();
Column col = getColumn(table, "No table");
assertEquals("", new ColumnServices().checkNullable(col));
}
use of org.obeonetwork.dsl.database.Column in project InformationSystem by ObeoNetwork.
the class ColumnServicesTest method testNoDefaultValueService.
@Test
public void testNoDefaultValueService() {
Column col = (Column) EcoreUtil.create(DatabasePackage.Literals.COLUMN);
assertEquals("", new ColumnServices().defaultValue(col));
}
Aggregations