Package br.com.caelum.stella.bean.validation.xml.logic

Examples of br.com.caelum.stella.bean.validation.xml.logic.StellaRequiredValidator


public class StellaRequiredValidatorTest {
  private ConstraintValidatorContext context = Mockito.mock(ConstraintValidatorContext.class);

    @Test
    public void testThatNullIsInvalid() {
    StellaRequiredValidator validator = new StellaRequiredValidator();
        Assert.assertFalse(validator.isValid(null,context));
    }
View Full Code Here


        Assert.assertFalse(validator.isValid(null,context));
    }

    @Test
    public void testThatAnyReferenceIsValid() {
        StellaRequiredValidator validator = new StellaRequiredValidator();
        Assert.assertTrue(validator.isValid(new Object(),context));
    }
View Full Code Here

TOP

Related Classes of br.com.caelum.stella.bean.validation.xml.logic.StellaRequiredValidator

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.