Changeset 6653 for vlo/trunk/vlo-importer/src/test/java/eu/clarin/cmdi/vlo/importer/CMDIDataProcessorTest.java
- Timestamp:
- 10/07/15 10:51:24 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vlo/trunk/vlo-importer/src/test/java/eu/clarin/cmdi/vlo/importer/CMDIDataProcessorTest.java
r6208 r6653 402 402 assertEquals("demo", doc.getFieldValue("genre")); 403 403 assertEquals( 404 "{ lang='eng'}This recording was made to generate a freely available test resource including speech and gestures. The annotations were created by Peter and Kita who is gesture researcher at the MPI for Psycholinguistics.",404 "{code:eng}This recording was made to generate a freely available test resource including speech and gestures. The annotations were created by Peter and Kita who is gesture researcher at the MPI for Psycholinguistics.", 405 405 doc.getFieldValue("description")); 406 406 assertEquals("2002-10-30", doc.getFieldValue("temporalCoverage")); … … 519 519 assertEquals("Netherlands", doc.getFieldValue("country")); 520 520 assertEquals("demo", doc.getFieldValue("genre")); 521 assertEquals("{ lang='und'}Test.", doc.getFieldValue("description"));521 assertEquals("{code:und}Test.", doc.getFieldValue("description")); 522 522 assertEquals("Should be null not empty string", null, doc.getFieldValue("organisation")); 523 523 assertEquals(null, doc.getFieldValue("language")); … … 597 597 List<String> descriptions = new ArrayList(fieldValues); 598 598 Collections.sort(descriptions); 599 assertEquals("{ lang='und'}Channel: Talking;\n Genre: Traditional Narrative / Story;\n Country: Panama;\n"599 assertEquals("{code:und}Channel: Talking;\n Genre: Traditional Narrative / Story;\n Country: Panama;\n" 600 600 + " Place of Recording: Mulatuppu;\n Event: Community Gathering;\n" 601 601 + " Institutional Affiliation: University of Texas at Austin;\n Participant Information: Political Leader;", descriptions.get(0).toString()); 602 assertEquals("{ lang='und'}Test", descriptions.get(1).toString());603 assertEquals("{ lang='und'}The one-eyed grandmother is one of many traditional Kuna stories performed "602 assertEquals("{code:und}Test", descriptions.get(1).toString()); 603 assertEquals("{code:und}The one-eyed grandmother is one of many traditional Kuna stories performed " 604 604 + "in the Kuna gathering house. This story, performed here by Pedro Arias, combines " 605 605 + "European derived motifs (Tom Thumb and Hansel and Gretel) with themes that seem more " … … 878 878 assertEquals(null, doc.getFieldValue("year")); 879 879 assertEquals(null, doc.getFieldValue("genre")); 880 assertEquals("{ lang='eng'}written general; 95 mio words; TEI/SGML", doc.getFieldValue("description"));880 assertEquals("{code:eng}written general; 95 mio words; TEI/SGML", doc.getFieldValue("description")); 881 881 assertEquals("Written Corpus", doc.getFieldValue(FacetConstants.FIELD_RESOURCE_CLASS)); 882 882 }
Note: See TracChangeset
for help on using the changeset viewer.