test_class.file: alien4cloud-tosca/src/test/java/org/alien4cloud/tosca/model/definitions/constraints/EqualConstraintTest.java
test_class.identifier: EqualConstraintTest
test_case.body: @Test(expected = ConstraintViolationException.class)
      public void testEqualConstraintFailNullDef() throws ConstraintViolationException {
          EqualConstraint constraint = new EqualConstraint();
          constraint.setEqual(null);
          constraint.validate("value");
      }
test_case.class_method_signature: EqualConstraintTest.testEqualConstraintFailNullDef()
test_case.full_signature: @Test(expected = ConstraintViolationException.class) public void testEqualConstraintFailNullDef()
test_case.identifier: testEqualConstraintFailNullDef
test_case.invocations: setEqual validate
test_case.modifiers: @Test(expected = ConstraintViolationException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testEqualConstraintFailNullDef()
focal_class.declarator: equal
focal_class.modifier: @NotNull
      private
focal_class.original_string: @NotNull
      private String equal;
focal_class.type: String
focal_class.var_name: equal
focal_class.declarator: typed
focal_class.modifier: @JsonIgnore
      private
focal_class.original_string: @JsonIgnore
      private Object typed;
focal_class.type: Object
focal_class.var_name: typed
focal_class.file: alien4cloud-tosca/src/main/java/org/alien4cloud/tosca/model/definitions/constraints/EqualConstraint.java
focal_class.identifier: EqualConstraint
focal_class.interfaces: implements IMatchPropertyConstraint
focal_class.class_method_signature: EqualConstraint.initialize(IPropertyType<?> propertyType)
focal_class.full_signature: @Override public void initialize(IPropertyType<?> propertyType)
focal_class.identifier: initialize
focal_class.modifiers: @Override public
focal_class.parameters: (IPropertyType<?> propertyType)
focal_class.return: void
focal_class.signature: void initialize(IPropertyType<?> propertyType)
focal_class.class_method_signature: EqualConstraint.setConstraintValue(IPropertyType<?> toscaType, String textValue)
focal_class.full_signature: @Override public void setConstraintValue(IPropertyType<?> toscaType, String textValue)
focal_class.identifier: setConstraintValue
focal_class.modifiers: @Override public
focal_class.parameters: (IPropertyType<?> toscaType, String textValue)
focal_class.return: void
focal_class.signature: void setConstraintValue(IPropertyType<?> toscaType, String textValue)
focal_class.class_method_signature: EqualConstraint.validate(Object propertyValue)
focal_class.full_signature: @Override public void validate(Object propertyValue)
focal_class.identifier: validate
focal_class.modifiers: @Override public
focal_class.parameters: (Object propertyValue)
focal_class.return: void
focal_class.signature: void validate(Object propertyValue)
focal_class.class_method_signature: EqualConstraint.fail(Object propertyValue)
focal_class.full_signature: private void fail(Object propertyValue)
focal_class.identifier: fail
focal_class.modifiers: private
focal_class.parameters: (Object propertyValue)
focal_class.return: void
focal_class.signature: void fail(Object propertyValue)
focal_class.superclass: extends AbstractPropertyConstraint
focal_method.body: @Override
      public void validate(Object propertyValue) throws ConstraintViolationException {
          if (propertyValue == null) {
              if (typed != null) {
                  fail(propertyValue);
              }
          } else if (typed == null) {
              fail(propertyValue);
          } else if (!typed.equals(propertyValue)) {
              fail(propertyValue);
          }
      }
focal_method.class_method_signature: EqualConstraint.validate(Object propertyValue)
focal_method.full_signature: @Override public void validate(Object propertyValue)
focal_method.identifier: validate
focal_method.invocations: fail fail equals fail
focal_method.modifiers: @Override public
focal_method.parameters: (Object propertyValue)
focal_method.return: void
focal_method.signature: void validate(Object propertyValue)