Package cat.quickdb.validation.model

Examples of cat.quickdb.validation.model.ValidComplexNumeric


        Assert.assertTrue(!value);
    }

    @Test
    public void testValidComplexNumeric(){
        ValidComplexNumeric numeric = new ValidComplexNumeric();
        numeric.setNumber1(5);
        numeric.setNumber2(5);
        numeric.setNumber3(2);

        boolean value = admin.save(numeric);
        Assert.assertTrue(value);

        numeric.setNumber2(2);
        value = admin.save(numeric);
        Assert.assertTrue(value);
        numeric.setNumber2(9);
        value = admin.save(numeric);
        Assert.assertTrue(value);
    }
View Full Code Here


        Assert.assertTrue(value);
    }

    @Test
    public void testInvalidComplexNumeric1(){
        ValidComplexNumeric numeric = new ValidComplexNumeric();
        numeric.setNumber1(4);
        numeric.setNumber2(5);
        numeric.setNumber3(2);

        boolean value = admin.save(numeric);
        Assert.assertTrue(!value);
    }
View Full Code Here

        Assert.assertTrue(!value);
    }

    @Test
    public void testInvalidComplexNumeric2(){
        ValidComplexNumeric numeric = new ValidComplexNumeric();
        numeric.setNumber1(5);
        numeric.setNumber2(1);
        numeric.setNumber3(2);

        boolean value = admin.save(numeric);
        Assert.assertTrue(!value);

        numeric.setNumber2(10);
        value = admin.save(numeric);
        Assert.assertTrue(!value);
    }
View Full Code Here

        Assert.assertTrue(!value);
    }

    @Test
    public void testInvalidComplexNumeric3(){
        ValidComplexNumeric numeric = new ValidComplexNumeric();
        numeric.setNumber1(5);
        numeric.setNumber2(4);
        numeric.setNumber3(1);

        boolean value = admin.save(numeric);
        Assert.assertTrue(!value);

        numeric.setNumber2(3);
        value = admin.save(numeric);
        Assert.assertTrue(!value);

        numeric.setNumber2(5);
        value = admin.save(numeric);
        Assert.assertTrue(!value);
    }
View Full Code Here

        Assert.assertTrue(!value);
    }

    @Test
    public void testInvalidComplexNumericAll(){
        ValidComplexNumeric numeric = new ValidComplexNumeric();
        numeric.setNumber1(3);
        numeric.setNumber2(10);
        numeric.setNumber3(1);

        boolean value = admin.save(numeric);
        Assert.assertTrue(!value);
    }
View Full Code Here

TOP

Related Classes of cat.quickdb.validation.model.ValidComplexNumeric

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.