1 17 18 19 20 package org.apache.fop.intermediate; 21 22 import java.io.File ; 23 import java.io.IOException ; 24 import java.util.Collection ; 25 import java.util.Iterator ; 26 27 import junit.framework.Test; 28 import junit.framework.TestSuite; 29 30 import org.apache.fop.layoutengine.LayoutEngineTestSuite; 31 32 35 public class IntermediateFormatTestSuite { 36 37 41 public static Test suite() throws IOException { 42 TestSuite suite = new TestSuite(); 43 44 Collection files = LayoutEngineTestSuite.getTestFiles(); 45 46 Iterator i = files.iterator(); 47 while (i.hasNext()) { 48 File f = (File )i.next(); 49 addTestCase(suite, f); 50 } 51 52 return suite; 53 } 54 55 private static void addTestCase(TestSuite suite, 56 final File f) { 57 suite.addTest(new AreaTreeParserTestCase(f) { 58 public void runTest() throws Exception { 59 org.apache.commons.logging.LogFactory.getLog( 60 this.getClass()).info("Starting " + f.getName()); 61 testParserToAT(); 62 testParserToPDF(); 63 } 64 }); 65 } 66 67 } 68 | Popular Tags |