Package de.zalando.sprocwrapper.example

Examples of de.zalando.sprocwrapper.example.ExampleDomainObjectWithValidation


        exampleValidationSProcService.testSprocCallWithValidation2(obj);
    }

    @Test(expected = ConstraintViolationException.class)
    public void testValidValidation11() {
        final ExampleDomainObjectWithValidation obj = new ExampleDomainObjectWithValidation(null, null);
        exampleValidationSProcService.testSprocCallWithValidation3(obj);
    }
View Full Code Here


        exampleValidationSProcService.testSprocCallWithValidation3(obj);
    }

    @Test
    public void testValidValidationReturnValue1() {
        final ExampleDomainObjectWithValidation obj = new ExampleDomainObjectWithValidation("test", 4);
        exampleSProcService.testSprocCallWithValidationInvalidRet1(obj);
    }
View Full Code Here

        exampleSProcService.testSprocCallWithValidationInvalidRet1(obj);
    }

    @Test(expected = ConstraintViolationException.class)
    public void testValidValidationReturnValue2() {
        final ExampleDomainObjectWithValidation obj = new ExampleDomainObjectWithValidation("test", 4);
        exampleSProcService.testSprocCallWithValidationInvalidRet2(obj);
    }
View Full Code Here

        exampleSProcService.testSprocCallWithValidationInvalidRet2(obj);
    }

    @Test
    public void testValidationErrorWithNullParameters() {
        final ExampleDomainObjectWithValidation obj = new ExampleDomainObjectWithValidation("test", 4);
        try {
            exampleValidationSProcService.testSprocCallWithMultipleParametersValidation(obj, null, null, null);
            Assert.fail();
        } catch (ConstraintViolationException e) {
            Assert.assertNotNull(e.getConstraintViolations());
View Full Code Here

        }
    }

    @Test
    public void testValidationWithNullParameter() {
        final ExampleDomainObjectWithValidation obj = new ExampleDomainObjectWithValidation("test", 4);
        exampleValidationSProcService.testSprocCallWithMultipleParametersValidation(obj, "parameter0", "parameter1",
            null);
    }
View Full Code Here

TOP

Related Classes of de.zalando.sprocwrapper.example.ExampleDomainObjectWithValidation

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.