public void testFillReferencingPrimitiveIntegerKey() throws Exception
{
ForeignKeySchemaData.clearTablesInDatabase();
ForeignKeySchemaData testData
= ForeignKeySchemaData.getDefaultTestData();
testData.save();
Criteria criteria = new Criteria();
criteria.addAscendingOrderByColumn(PIntegerPkPeer.ID);
List<PIntegerPk> pkList = PIntegerPkPeer.doSelect(criteria);
assertEquals(3, pkList.size());