]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Corrected error in Junit4 migration
authorMehdi Houshmand <mehdi@apache.org>
Mon, 13 Feb 2012 15:00:41 +0000 (15:00 +0000)
committerMehdi Houshmand <mehdi@apache.org>
Mon, 13 Feb 2012 15:00:41 +0000 (15:00 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1243549 13f79535-47bb-0310-9956-ffa450edef68

test/java/org/apache/fop/fo/flow/table/AllTests.java
test/java/org/apache/fop/pdf/PDFLibraryTestSuite.java

index 7adca8f3a93c90149e66cedd82fc4fa95ffc4aa2..2c9c28a62c193a35a9b49dfe25012a6c6d6169b3 100644 (file)
 
 package org.apache.fop.fo.flow.table;
 
+import org.junit.runner.RunWith;
 import org.junit.runners.Suite;
+import org.junit.runners.Suite.SuiteClasses;
 
 /**
  * All test to be added in FOTreeTestSuite
  *
  */
-@Suite.SuiteClasses({ CollapsedConditionalBorderTestCase.class, IllegalRowSpanTestCase.class,
-        RowGroupBuilderTestCase.class, TableColumnColumnNumberTestCase.class,
+@RunWith(Suite.class)
+@SuiteClasses({
+        CollapsedConditionalBorderTestCase.class,
+        IllegalRowSpanTestCase.class,
+        RowGroupBuilderTestCase.class,
+        TableColumnColumnNumberTestCase.class,
         TooManyColumnsTestCase.class })
-
 public final class AllTests {
 }
-
index 4df3259699235bb5cec97188598910c4a6ca00ef..a0c4ea11f16c9e0e99e8f68c39a230ba499876f2 100644 (file)
 
 package org.apache.fop.pdf;
 
-import junit.framework.Test;
-import junit.framework.TestSuite;
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite;
+import org.junit.runners.Suite.SuiteClasses;
 
 
 /**
  * Test suite for FOP's utility classes.
  */
+@RunWith(Suite.class)
+@SuiteClasses({
+        PDFArrayTestCase.class,
+        PDFDictionaryTestCase.class,
+        PDFNumberTestCase.class,
+        PDFObjectTestCase.class,
+        PDFNameTestCase.class,
+        AbstractPDFStreamTestCase.class,
+        PDFDestsTestCase.class,
+        PDFDocumentTestCase.class,
+        PDFNullTestCase.class,
+        PDFNumsArrayTestCase.class,
+        PDFRectangleTestCase.class,
+        PDFReferenceTestCase.class
+})
 public class PDFLibraryTestSuite {
-
-    /**
-     * Builds the test suite
-     * @return the test suite
-     */
-    public static Test suite() {
-        TestSuite suite = new TestSuite(
-            "Test suite for FOP's utility classes");
-        //$JUnit-BEGIN$
-        suite.addTest(new TestSuite(PDFArrayTestCase.class));
-        suite.addTest(new TestSuite(PDFDictionaryTestCase.class));
-        suite.addTest(new TestSuite(PDFNumberTestCase.class));
-        suite.addTest(new TestSuite(PDFObjectTestCase.class));
-        suite.addTest(new TestSuite(PDFNameTestCase.class));
-        suite.addTest(new TestSuite(AbstractPDFStreamTestCase.class));
-        suite.addTest(new TestSuite(PDFDestsTestCase.class));
-        suite.addTest(new TestSuite(PDFDocumentTestCase.class));
-        suite.addTest(new TestSuite(PDFNullTestCase.class));
-        suite.addTest(new TestSuite(PDFNumsArrayTestCase.class));
-        suite.addTest(new TestSuite(PDFRectangleTestCase.class));
-        suite.addTest(new TestSuite(PDFReferenceTestCase.class));
-        //$JUnit-END$
-        return suite;
-    }
 }