Class DynamicConstraintTest

    • Constructor Detail

      • DynamicConstraintTest

        public DynamicConstraintTest()
    • Method Detail

      • testCreateDynamicPojoConstraint

        public void testCreateDynamicPojoConstraint()
        simple example of valid bsh script assigned for a pojo class
         out.print("some data");
      • testCreateDynamicModelConstraint

        public void testCreateDynamicModelConstraint()
        simple example of valid bsh script assigned for a ProductModel class
         out.print("some data");
      • testCreateDynamicWithTargetConstraint

        public void testCreateDynamicWithTargetConstraint()
        not allowed creation of the constraint for a model via AbstractConstraintModel.TARGET
      • testCreateDynamicNoExpressionConstraint

        public void testCreateDynamicNoExpressionConstraint()
        not allowed creation of the dynamic constraint without DynamicConstraintModel.EXPRESSION
      • testCheckInvalidBSH

        public void testCheckInvalidBSH()
                                 throws java.lang.Exception
        inappropriate BSH script syntax
        Throws:
        java.lang.Exception
      • testCheckBSHRuntimeException

        public void testCheckBSHRuntimeException()
                                          throws java.lang.Exception
        runtime exception are not affecting validation flag
        Throws:
        java.lang.Exception