Class BeanShellConstraintValidationTest

All Implemented Interfaces:
JaloSessionHolder

@IntegrationTest public class BeanShellConstraintValidationTest extends AbstractConstraintTest
Test covering common cases of beanshell based validator.
  • Constructor Details

    • BeanShellConstraintValidationTest

      public BeanShellConstraintValidationTest()
  • Method Details

    • 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()