List<ColumnDefinition> colDefs = cfDef.getColumnDefinitionList();
Assert.assertTrue(7 == colDefs.size());
for (int i=1; i<=5; i++) {
ColumnDefinition colDef = colDefs.get(i-1);
Assert.assertEquals("column" + i, colDef.getName());
Assert.assertNotNull(colDef.getValidationClass());
}
ColumnDefinition colDef = colDefs.get(6);
Assert.assertEquals("value", colDef.getName());
Assert.assertNotNull(colDef.getValidationClass());
cfDef = ksDef.getColumnFamily("population");
Assert.assertEquals("population", cfDef.getName());
colDefs = cfDef.getColumnDefinitionList();
Assert.assertTrue(7 == colDefs.size());
for (int i=1; i<=5; i++) {
colDef = colDefs.get(i-1);
Assert.assertEquals("column" + i, colDef.getName());
Assert.assertNotNull(colDef.getValidationClass());
}
colDef = colDefs.get(6);
Assert.assertEquals("value", colDef.getName());
Assert.assertNotNull(colDef.getValidationClass());
}
keyspace.dropKeyspace();
}