use of org.obeonetwork.dsl.database.Table in project InformationSystem by ObeoNetwork.
the class ColumnServicesTest method isAutoIncrementNonTest.
// @Test
// public void isAutoIncrementTest() {
// Table table = getGSSerieTable();
// Column col = getColumn(table, "RF_GENRE_ID");
// assertEquals("Oui", new ColumnServices().isForeignKey(col));
// }
@Test
public void isAutoIncrementNonTest() {
Table table = getGSSerieTable();
Column col = getColumn(table, "GS_SERIE_NOM");
assertEquals("Non", new ColumnServices().isInForeignKey(col));
}
use of org.obeonetwork.dsl.database.Table in project InformationSystem by ObeoNetwork.
the class ColumnServicesTest method isUniqueNullTest.
@Test
public void isUniqueNullTest() {
Table table = getGSSerieTable();
Column col = getColumn(table, "No table");
assertEquals("No", new ColumnServices().isUnic(col));
}
use of org.obeonetwork.dsl.database.Table in project InformationSystem by ObeoNetwork.
the class ColumnServicesTest method isUniqueOuiTest.
@Test
public void isUniqueOuiTest() {
Table table = getGSSerieTable();
Column col = getColumn(table, "GS_SERIE_NOM");
assertEquals("Oui", new ColumnServices().isUnic(col));
}
use of org.obeonetwork.dsl.database.Table in project InformationSystem by ObeoNetwork.
the class ColumnServicesTest method checkUniqueNullTest.
@Test
public void checkUniqueNullTest() {
Table table = getGSSerieTable();
Column col = getColumn(table, "No table");
assertEquals("", new ColumnServices().checkUnique(col));
}
use of org.obeonetwork.dsl.database.Table in project InformationSystem by ObeoNetwork.
the class ColumnServicesTest method isUniqueNonTest.
@Test
public void isUniqueNonTest() {
Table table = getGSSerieTable();
Column col = getColumn(table, "GS_SERIE_ID");
assertEquals("Non", new ColumnServices().isUnic(col));
}
Aggregations