Package cat.quickdb.model

Examples of cat.quickdb.model.Prueba


        Assert.assertTrue(value);
    }

    @Test
    public void testCreateTableSimple() {
        Prueba prueba = new Prueba();
        prueba.setName("test");
        boolean value = admin.save(prueba);

        Assert.assertTrue(value);
    }
View Full Code Here


    @Test
    public void testCreateTableComposed() {
        SuperPrueba sup = new SuperPrueba();
        sup.setName("superPrueba");

        Prueba prueba = new Prueba();
        prueba.setName("test Prueba Composed");
        sup.setPrueba(prueba);
        boolean value = admin.save(sup);

        Assert.assertTrue(value);
    }
View Full Code Here

    }

    @Test
    public void testObtainAll(){
        ArrayList array = new ArrayList();
        array.add(new Prueba("obtainAll1"));
        array.add(new Prueba("obtainAll2"));
        array.add(new Prueba("obtainAll3"));
        admin.saveAll(array);

        ArrayList results = admin.obtainAll(Prueba.class, "name like 'obtainAll%'");
        Assert.assertTrue((results.size() >= 3));
    }
View Full Code Here

TOP

Related Classes of cat.quickdb.model.Prueba

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.