use of de.tudarmstadt.ukp.clarin.webanno.api.WebAnnoConst.PROJECT_TYPE_CORRECTION in project webanno by webanno.
the class CuratedDocumentsExporterTest method thatImportingCorrectionProjectWorks_3_6_1.
@Test
public void thatImportingCorrectionProjectWorks_3_6_1() throws Exception {
project.setMode(PROJECT_TYPE_CORRECTION);
// Export the project and import it again
List<Pair<SourceDocument, String>> imported = runImportAndFetchDocuments(new ZipFile("src/test/resources/exports/Export+Test+-+Curated+correction+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");
// Since WebAnno 3.5.x, the CORRECTION_USER CAS is stored with the annotations
assertThat(imported).extracting(Pair::getValue).containsExactlyInAnyOrder(CURATION_USER);
}
use of de.tudarmstadt.ukp.clarin.webanno.api.WebAnnoConst.PROJECT_TYPE_CORRECTION in project webanno by webanno.
the class CuratedDocumentsExporterTest method thatImportingCorrectionProjectWorks_3_4_x.
@Test
public void thatImportingCorrectionProjectWorks_3_4_x() throws Exception {
project.setMode(PROJECT_TYPE_CORRECTION);
// Export the project and import it again
List<Pair<SourceDocument, String>> imported = runImportAndFetchDocuments(new ZipFile("src/test/resources/exports/Export+Test+-+Curated+correction+project_3_4_8.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");
// Before WebAnno 3.5.x, the CORRECTION_USER CAS was stored with the curations
assertThat(imported).extracting(Pair::getValue).containsExactlyInAnyOrder(CURATION_USER, CORRECTION_USER);
}
use of de.tudarmstadt.ukp.clarin.webanno.api.WebAnnoConst.PROJECT_TYPE_CORRECTION in project webanno by webanno.
the class AnnotationDocumentsExporterTest method thatImportingCorrectionProjectWorks_3_6_1.
@Test
public void thatImportingCorrectionProjectWorks_3_6_1() throws Exception {
project.setMode(PROJECT_TYPE_CORRECTION);
// Export the project and import it again
List<Pair<SourceDocument, String>> imported = runImportAndFetchDocuments(new ZipFile("src/test/resources/exports/Export+Test+-+Curated+correction+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", "example_sentence.txt");
// Since WebAnno 3.5.x, the CORRECTION_USER CAS is stored with the annotations
assertThat(imported).extracting(Pair::getValue).containsExactlyInAnyOrder(INITIAL_CAS_PSEUDO_USER, "admin", CORRECTION_USER);
}
use of de.tudarmstadt.ukp.clarin.webanno.api.WebAnnoConst.PROJECT_TYPE_CORRECTION in project webanno by webanno.
the class AnnotationDocumentsExporterTest method thatImportingCorrectionProjectWorks_3_4_x.
@Test
public void thatImportingCorrectionProjectWorks_3_4_x() throws Exception {
project.setMode(PROJECT_TYPE_CORRECTION);
// Export the project and import it again
List<Pair<SourceDocument, String>> imported = runImportAndFetchDocuments(new ZipFile("src/test/resources/exports/Export+Test+-+Curated+correction+project_3_4_8.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");
// Before WebAnno 3.5.x, the CORRECTION_USER CAS was stored with the curations
assertThat(imported).extracting(Pair::getValue).containsExactlyInAnyOrder(INITIAL_CAS_PSEUDO_USER, "admin");
}
Aggregations