test_class.declarator: validator
test_class.modifier: private
test_class.original_string: private RegistryResponseValidator validator;
test_class.type: RegistryResponseValidator
test_class.var_name: validator
test_class.declarator: response
test_class.modifier: private
test_class.original_string: private Response response;
test_class.type: Response
test_class.var_name: response
test_class.declarator: transformer
test_class.modifier: private
test_class.original_string: private ResponseTransformer transformer;
test_class.type: ResponseTransformer
test_class.var_name: transformer
test_class.declarator: profile
test_class.modifier: private
test_class.original_string: private ValidationProfile profile;
test_class.type: ValidationProfile
test_class.var_name: profile
test_class.file: commons/ihe/xds/src/test/java/org/openehealth/ipf/commons/ihe/xds/core/validate/responses/RegistryResponseValidatorTest.java
test_class.identifier: RegistryResponseValidatorTest
test_case.body: @Test
      public void testGoodCase() throws XDSMetaDataException {
          validator.validate(transformer.toEbXML(response), profile);
      }
test_case.class_method_signature: RegistryResponseValidatorTest.testGoodCase()
test_case.full_signature: @Test public void testGoodCase()
test_case.identifier: testGoodCase
test_case.invocations: validate toEbXML
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGoodCase()
focal_class.declarator: hcValidator = new HomeCommunityIdValidator(true)
focal_class.modifier: private final
focal_class.original_string: private final HomeCommunityIdValidator hcValidator = new HomeCommunityIdValidator(true);
focal_class.type: HomeCommunityIdValidator
focal_class.var_name: hcValidator
focal_class.file: commons/ihe/xds/src/main/java/org/openehealth/ipf/commons/ihe/xds/core/validate/responses/RegistryResponseValidator.java
focal_class.identifier: RegistryResponseValidator
focal_class.interfaces: implements Validator<EbXMLRegistryResponse, ValidationProfile>
focal_class.class_method_signature: RegistryResponseValidator.validate(EbXMLRegistryResponse response, ValidationProfile profile)
focal_class.full_signature: @Override public void validate(EbXMLRegistryResponse response, ValidationProfile profile)
focal_class.identifier: validate
focal_class.modifiers: @Override public
focal_class.parameters: (EbXMLRegistryResponse response, ValidationProfile profile)
focal_class.return: void
focal_class.signature: void validate(EbXMLRegistryResponse response, ValidationProfile profile)
focal_method.body: @Override
      public void validate(EbXMLRegistryResponse response, ValidationProfile profile) {
          notNull(response, "response cannot be null");
          
          metaDataAssert(response.getStatus() != null, INVALID_STATUS_IN_RESPONSE);
          for (EbXMLRegistryError registryError : response.getErrors()) {
              metaDataAssert(registryError != null, INVALID_ERROR_INFO_IN_RESPONSE);
              metaDataAssert(registryError.getErrorCode() != null, INVALID_ERROR_CODE_IN_RESPONSE);
              metaDataAssert(registryError.getSeverity() != null, INVALID_SEVERITY_IN_RESPONSE);
  
              if (profile.getProfile() == ValidationProfile.InteractionProfile.XCA) {
                  hcValidator.validate(registryError.getLocation());
              }
          }
      }
focal_method.class_method_signature: RegistryResponseValidator.validate(EbXMLRegistryResponse response, ValidationProfile profile)
focal_method.full_signature: @Override public void validate(EbXMLRegistryResponse response, ValidationProfile profile)
focal_method.identifier: validate
focal_method.invocations: notNull metaDataAssert getStatus getErrors metaDataAssert metaDataAssert getErrorCode metaDataAssert getSeverity getProfile validate getLocation
focal_method.modifiers: @Override public
focal_method.parameters: (EbXMLRegistryResponse response, ValidationProfile profile)
focal_method.return: void
focal_method.signature: void validate(EbXMLRegistryResponse response, ValidationProfile profile)