use of com.b2international.snowowl.core.request.io.ImportResponse in project snow-owl by b2ihealthcare.
the class SnomedImportRowValidatorTest method importReferenceSetWithNonUUID.
@Test
public void importReferenceSetWithNonUUID() throws FileNotFoundException {
final String archiveFilePath = "SnomedCT_RF2Release_INT_20180223_member_with_non_uuid.zip";
final ImportResponse response = importArchive(archiveFilePath, Rf2ReleaseType.DELTA);
final Collection<String> issues = getDefectMessages(response);
final String issue = Iterables.getOnlyElement(issues);
assertThat(issues).hasSize(1);
assertThat(issue).containsSequence(Rf2ValidationDefects.INVALID_UUID.getLabel());
assertFalse(response.isSuccess());
}
use of com.b2international.snowowl.core.request.io.ImportResponse in project snow-owl by b2ihealthcare.
the class SnomedImportRowValidatorTest method importConceptWithDescriptionAsDefStatusId.
@Test
public void importConceptWithDescriptionAsDefStatusId() throws FileNotFoundException {
final String archiveFilePath = "SnomedCT_Release_INT_20150131_concept_with_desc_as_defStatusId.zip";
final ImportResponse response = importArchive(archiveFilePath, Rf2ReleaseType.DELTA);
final Collection<String> issues = getDefectMessages(response);
assertThat(issues).hasSize(1);
assertEquals(Rf2ValidationDefects.UNEXPECTED_COMPONENT_CATEGORY.getLabel(), Iterables.getOnlyElement(issues));
assertFalse(response.isSuccess());
}
Aggregations