use of de.tudarmstadt.ukp.clarin.webanno.api.WebAnnoConst.PROJECT_TYPE_ANNOTATION in project webanno by webanno.
the class CuratedDocumentsExporterTest method thatImportingAnnotationProjectWorks_3_6_1.
@Test
public void thatImportingAnnotationProjectWorks_3_6_1() throws Exception {
project.setMode(PROJECT_TYPE_ANNOTATION);
// Export the project and import it again
List<Pair<SourceDocument, String>> imported = runImportAndFetchDocuments(new ZipFile("src/test/resources/exports/Export+Test+-+Curated+annotation+project_3_6_1.zip"));
// Check that the curation for the document in the project is imported
assertThat(imported).extracting(p -> p.getKey().getName()).containsExactlyInAnyOrder("example_sentence.txt");
assertThat(imported).extracting(Pair::getValue).containsExactlyInAnyOrder(CURATION_USER);
}
use of de.tudarmstadt.ukp.clarin.webanno.api.WebAnnoConst.PROJECT_TYPE_ANNOTATION in project webanno by webanno.
the class AnnotationDocumentsExporterTest method thatImportingAnnotationProjectWorks_3_6_1.
@Test
public void thatImportingAnnotationProjectWorks_3_6_1() throws Exception {
project.setMode(PROJECT_TYPE_ANNOTATION);
// Export the project and import it again
List<Pair<SourceDocument, String>> imported = runImportAndFetchDocuments(new ZipFile("src/test/resources/exports/Export+Test+-+Curated+annotation+project_3_6_1.zip"));
// Check that the curation for the document in the project is imported
assertThat(imported).extracting(p -> p.getKey().getName()).containsExactlyInAnyOrder("example_sentence.txt", "example_sentence.txt");
assertThat(imported).extracting(Pair::getValue).containsExactlyInAnyOrder(INITIAL_CAS_PSEUDO_USER, "admin");
}
Aggregations