Class BeanShellConstraintValidationTest

    • Constructor Detail

      • BeanShellConstraintValidationTest

        public BeanShellConstraintValidationTest()
    • Method Detail

      • testSimplePrintln

        public void testSimplePrintln()
      • testSimpleSlayerFetch

        public void testSimpleSlayerFetch()
        tests bindable application ctx object
      • testSimplePrintlnInvalidScript

        public void testSimplePrintlnInvalidScript()
        this case in future should be replaced with checking script validity after saving such constraint , so misspelled BSH scripts throwing EvalError won't be savable
      • testSimpleCustomerNameCheck

        public void testSimpleCustomerNameCheck()
        validates customer instance if it suits such script
         return (this.name != this.customerID);
      • testSimpleCustomerDateCheck

        public void testSimpleCustomerDateCheck()
        validates customer instance if it suits such script
         return (this.creationDate.after(new Date());
      • testSimplePojoFieldCheck

        public void testSimplePojoFieldCheck()