Examples of Pruebas


Examples of cat.quickdb.model.Pruebas

        Assert.assertEquals(q.getIdDistrict().getName(), "prueba modificando");
    }

    @Test
    public void testObjectsWithCollectionIntuitive(){
        Pruebas p = new Pruebas();
        p.setDescripcion("diego");
        ArrayList<Prueba2> arrayP = new ArrayList<Prueba2>();
        Prueba2 p1 = new Prueba2();
        p1.setNombre("gato1");
        Prueba2 p2 = new Prueba2();
        p2.setNombre("gato2");
        arrayP.add(p1);
        arrayP.add(p2);

        p.setPrueba2(arrayP);

        Assert.assertTrue(admin.save(p));

        admin.obtainWhere(p, "descripcion='diego'");
        Assert.assertEquals(p.getDescripcion(), "diego");
        Assert.assertEquals(((Prueba2)p.getPrueba2().get(1)).getNombre(), "gato2");
    }
View Full Code Here

Examples of quickdb.model.Pruebas

        admin.obtainWhere(q, "street='modifyAddress'");
        System.out.println(q.getIdDistrict().getName().equalsIgnoreCase("prueba modificando"));
    }

    public void testObjectsWithCollectionIntuitive(){
        Pruebas p = new Pruebas();
        p.setDescripcion("diego");
        ArrayList<Prueba2> arrayP = new ArrayList<Prueba2>();
        Prueba2 p1 = new Prueba2();
        p1.setNombre("gato1");
        Prueba2 p2 = new Prueba2();
        p2.setNombre("gato2");
        arrayP.add(p1);
        arrayP.add(p2);

        p.setPrueba2(arrayP);

        System.out.println(admin.save(p));

        admin.obtainWhere(p, "descripcion='diego'");
        System.out.println(p.getDescripcion().equalsIgnoreCase("diego"));
        System.out.println(((Prueba2)p.getPrueba2().get(1)).getNombre().equalsIgnoreCase("gato2"));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.