Package cat.quickdb.primitiveCollection.model

Examples of cat.quickdb.primitiveCollection.model.BooleanPrimitive


        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));
View Full Code Here

TOP

Related Classes of cat.quickdb.primitiveCollection.model.BooleanPrimitive

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.