Class XMLTest


  • public class XMLTest
    extends Object
    This test case demonstrates the use of deployment descriptors to define validation for beans.
    • Field Detail

      • logger

        private static final org.slf4j.Logger logger
      • vf

        javax.validation.ValidatorFactory vf
      • val

        javax.validation.Validator val
    • Constructor Detail

      • XMLTest

        public XMLTest()
    • Method Detail

      • testValidationDescriptorBad

        public void testValidationDescriptorBad()
        This test verifies the XML-based definitions will be used to detect a validation error with the bean.
      • testValidationDescriptorGood

        public void testValidationDescriptorGood()
        This test verifies the XML-based definitions will successfully validate and pass a valid bean.