test_class.declarator: LOG = LoggerFactory.getLogger(CDAR2ValidatorTest.class.getName())
test_class.modifier: private static final
test_class.original_string: private static final Logger LOG = LoggerFactory.getLogger(CDAR2ValidatorTest.class.getName());
test_class.type: Logger
test_class.var_name: LOG
test_class.declarator: validator
test_class.modifier: private
test_class.original_string: private CDAR2Validator validator;
test_class.type: CDAR2Validator
test_class.var_name: validator
test_class.declarator: context
test_class.modifier: private
test_class.original_string: private Map<Object, Object> context;
test_class.type: Map<Object, Object>
test_class.var_name: context
test_class.file: modules/cda/mdht/src/test/java/org/openehealth/ipf/modules/cda/CDAR2ValidatorTest.java
test_class.identifier: CDAR2ValidatorTest
test_case.body: @Test(expected=ValidationException.class)
      public final void validateCDAError() throws Exception {
          LOG.info("Validating erroneous plain CDA document");
          InputStream is = getClass().getResourceAsStream(
              "/builders/content/document/InvalidCDADocument.xml");
          ClinicalDocument cda = CDAUtil.load(is);
          validator.validate(cda, null);
          // TODO check expected validation errors
      }
test_case.class_method_signature: CDAR2ValidatorTest.validateCDAError()
test_case.full_signature: @Test(expected=ValidationException.class) public final void validateCDAError()
test_case.identifier: validateCDAError
test_case.invocations: info getResourceAsStream getClass load validate
test_case.modifiers: @Test(expected=ValidationException.class) public final
test_case.parameters: ()
test_case.return: void
test_case.signature: void validateCDAError()
focal_class.file: modules/cda/mdht/src/main/java/org/openehealth/ipf/modules/cda/CDAR2Validator.java
focal_class.identifier: CDAR2Validator
focal_class.interfaces: implements Validator<ClinicalDocument, Map<Object, Object>>
focal_class.class_method_signature: CDAR2Validator.validate(ClinicalDocument doc, Map<Object, Object> context)
focal_class.full_signature: @Override public void validate(ClinicalDocument doc, Map<Object, Object> context)
focal_class.identifier: validate
focal_class.modifiers: @Override public
focal_class.parameters: (ClinicalDocument doc, Map<Object, Object> context)
focal_class.return: void
focal_class.signature: void validate(ClinicalDocument doc, Map<Object, Object> context)
focal_class.class_method_signature: CDAR2Validator.retrieveValidationHandler(Map<Object, Object> context)
focal_class.full_signature: private ValidationHandler retrieveValidationHandler(Map<Object, Object> context)
focal_class.identifier: retrieveValidationHandler
focal_class.modifiers: private
focal_class.parameters: (Map<Object, Object> context)
focal_class.return: ValidationHandler
focal_class.signature: ValidationHandler retrieveValidationHandler(Map<Object, Object> context)
focal_method.body: @Override
      public void validate(ClinicalDocument doc, Map<Object, Object> context) {
          boolean isValid = CDAUtil.validate(doc, retrieveValidationHandler(context));
          if (! isValid) {
              throw new ValidationException("Clinical Document not valid!");
          }
      }
focal_method.class_method_signature: CDAR2Validator.validate(ClinicalDocument doc, Map<Object, Object> context)
focal_method.full_signature: @Override public void validate(ClinicalDocument doc, Map<Object, Object> context)
focal_method.identifier: validate
focal_method.invocations: validate retrieveValidationHandler
focal_method.modifiers: @Override public
focal_method.parameters: (ClinicalDocument doc, Map<Object, Object> context)
focal_method.return: void
focal_method.signature: void validate(ClinicalDocument doc, Map<Object, Object> context)