Class DynamicConstraintTest

All Implemented Interfaces:
JaloSessionHolder

@IntegrationTest public class DynamicConstraintTest extends AbstractConstraintTest
Test for presenting set of required attributes for storing DynamicConstraintModel.
  • Constructor Details

    • DynamicConstraintTest

      public DynamicConstraintTest()
  • Method Details

    • 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
    • testCreateDynamicNoTargetConstraint

      public void testCreateDynamicNoTargetConstraint()
      not allowed creation of the constraint for a model without AbstractConstraintModel.TARGET or AbstractConstraintModel.TYPE
    • testCreateDynamicNoExpressionConstraint

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

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

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