@ -1,6 +1,7 @@
package de.anomic.document ;
//import static org.junit.Assert.*;
import static org.junit.Assert.* ;
import static org.junit.matchers.JUnitMatchers.* ;
import net.yacy.kelondro.data.meta.DigestURI ;
import org.junit.Test ;
@ -21,6 +22,7 @@ public class ParserTest {
String [ ] [ ] testFiles = new String [ ] [ ] {
// meaning: filename in test/parsertest, mimetype, title, creator, description,
new String [ ] { "umlaute_windows.docx" , "application/vnd.openxmlformats-officedocument.wordprocessingml.document" , "In München steht ein Hofbräuhaus, dort gibt es Bier in Maßkrügen" , "" , "" } ,
new String [ ] { "umlaute_windows.pptx" , "application/vnd.openxmlformats-officedocument.presentationml.presentation" , "Folie 1" , "" , "" } ,
new String [ ] { "umlaute_linux.odt" , "application/vnd.oasis.opendocument.text" , "Münchner Hofbräuhaus" , "" , "Kommentar zum Hofbräuhaus" } ,
new String [ ] { "umlaute_linux.ods" , "application/vnd.oasis.opendocument.spreadsheat" , "" , "" , "" } ,
new String [ ] { "umlaute_linux.odp" , "application/vnd.oasis.opendocument.presentation" , "" , "" , "" } ,
@ -43,15 +45,11 @@ public class ParserTest {
str . append ( ( char ) c ) ;
System . out . println ( "Parsed " + filename + ": " + str ) ;
/ *
* Eclipse kann das hier nicht compilieren , weil ' containsString ' nicht gefunden werden kann .
* Daher kommentiere ich das mal hier vorr ü bergehend aus . Bitte gucken was fehlt damit das geht .
assertThat ( str . toString ( ) , containsString ( "In München steht ein Hofbräuhaus, dort gibt es Bier in Maßkrügen" ) ) ;
assertThat ( doc . dc_title ( ) , containsString ( testFiles [ i ] [ 2 ] ) ) ;
assertThat ( doc . dc_creator ( ) , containsString ( testFiles [ i ] [ 3 ] ) ) ;
assertThat ( doc . dc_description ( ) , containsString ( testFiles [ i ] [ 4 ] ) ) ;
* /
}
}
}