Package cat.quickdb.invalid.model

Examples of cat.quickdb.invalid.model.InvalidObject


                QuickDBTests.user, QuickDBTests.pass, QuickDBTests.scheme);
    }

    @Test
    public void testSaveInvalidLongString(){
        InvalidObject inv = new InvalidObject();
        inv.setName("quickdb");

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

        InvalidObject inv2 = new InvalidObject();
        inv2.setName("testingquickdb-testingquickdb-testingquickdb-testingquickdb-" +
                "testingquickdb-testingquickdb-testingquickdb-testingquickdb-testingquickdb-" +
                "testingquickdb-testingquickdb-testingquickdb-testingquickdb-testingquickdb-" +
                "testingquickdb-testingquickdb-testingquickdb-testingquickdb-");

        Assert.assertFalse(admin.save(inv2));
View Full Code Here


        Assert.assertFalse(admin.save(inv2));
    }

    @Test
    public void testInvalidObtain(){
        InvalidObject inv = new InvalidObject();

        Assert.assertFalse(admin.obtain(inv, "name = 'diego'"));

        Assert.assertEquals(0, inv.getId());

        Assert.assertFalse(admin.obtain(inv).If("name").equal("diego").find());
    }
View Full Code Here

        Assert.assertFalse(admin.obtain(inv).If("name").equal("diego").find());
    }

    @Test
    public void testInvalidModify(){
        InvalidObject inv = new InvalidObject();

        Assert.assertFalse(admin.obtain(inv, "name = 'diego'"));

        inv.setName("diego");
        Assert.assertFalse(admin.modify(inv));
    }
View Full Code Here

        Assert.assertFalse(admin.modify(inv));
    }

    @Test
    public void testInvalidDelete(){
        InvalidObject inv = new InvalidObject();

        Assert.assertFalse(admin.obtain(inv, "name = 'diego'"));

        Assert.assertTrue(admin.delete(inv));
View Full Code Here

TOP

Related Classes of cat.quickdb.invalid.model.InvalidObject

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.