Assert.assertEquals(6, prim.getDates().size());
}
@Test
public void testBooleanCollection(){
BooleanPrimitive primitive = new BooleanPrimitive();
primitive.setType("boolean");
ArrayList booleans = new ArrayList();
booleans.add(true);
booleans.add(false);
booleans.add(true);
booleans.add(false);
booleans.add(true);
booleans.add(false);
primitive.setBooleans(booleans);
admin.save(primitive);
BooleanPrimitive prim = new BooleanPrimitive();
admin.obtain(prim, "type = 'boolean'");
Assert.assertEquals(6, prim.getBooleans().size());
boolean sec = true;
for(Object o : prim.getBooleans()){
if(sec){
Assert.assertTrue(((Boolean)o));
sec = false;
}else{
Assert.assertFalse(((Boolean)o));