aboutsummaryrefslogtreecommitdiffstats
path: root/test/java/org/apache/fop/fotreetest
diff options
context:
space:
mode:
authorVincent Hennebert <vhennebert@apache.org>2011-11-07 18:18:29 +0000
committerVincent Hennebert <vhennebert@apache.org>2011-11-07 18:18:29 +0000
commit02303acdd92bbdd79dfe9b8866617209b183ae26 (patch)
tree6e728bdafd520fd1ee911a76a42ad46aad181df4 /test/java/org/apache/fop/fotreetest
parentfd263a114c84c3756ead9c16b8b088531c5cab2c (diff)
downloadxmlgraphics-fop-02303acdd92bbdd79dfe9b8866617209b183ae26.tar.gz
xmlgraphics-fop-02303acdd92bbdd79dfe9b8866617209b183ae26.zip
Bugzilla 52136: Added to build file JUnit target that uses a regex to run all of the test cases.
Patch by Mehdi Houshmand, applied with minor modifications git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1198853 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/java/org/apache/fop/fotreetest')
-rw-r--r--test/java/org/apache/fop/fotreetest/FOTreeTestCase.java (renamed from test/java/org/apache/fop/fotreetest/FOTreeTester.java)4
-rw-r--r--test/java/org/apache/fop/fotreetest/FOTreeTestSuite.java15
2 files changed, 12 insertions, 7 deletions
diff --git a/test/java/org/apache/fop/fotreetest/FOTreeTester.java b/test/java/org/apache/fop/fotreetest/FOTreeTestCase.java
index 3eb7a490d..aa0cbe841 100644
--- a/test/java/org/apache/fop/fotreetest/FOTreeTester.java
+++ b/test/java/org/apache/fop/fotreetest/FOTreeTestCase.java
@@ -49,7 +49,7 @@ import org.apache.fop.util.ConsoleEventListenerForTests;
* Test driver class for FO tree tests.
*/
@RunWith(Parameterized.class)
-public class FOTreeTester {
+public class FOTreeTestCase {
@BeforeClass
public static void registerElementListObservers() {
@@ -84,7 +84,7 @@ public class FOTreeTester {
*
* @param testFile the FO file to test
*/
- public FOTreeTester(File testFile) {
+ public FOTreeTestCase(File testFile) {
fopFactory.addElementMapping(new TestElementMapping());
this.testFile = testFile;
}
diff --git a/test/java/org/apache/fop/fotreetest/FOTreeTestSuite.java b/test/java/org/apache/fop/fotreetest/FOTreeTestSuite.java
index 6e6f62b92..f128055ac 100644
--- a/test/java/org/apache/fop/fotreetest/FOTreeTestSuite.java
+++ b/test/java/org/apache/fop/fotreetest/FOTreeTestSuite.java
@@ -19,20 +19,25 @@
package org.apache.fop.fotreetest;
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite;
+
import org.apache.fop.fo.flow.table.CollapsedConditionalBorderTestCase;
import org.apache.fop.fo.flow.table.IllegalRowSpanTestCase;
import org.apache.fop.fo.flow.table.RowGroupBuilderTestCase;
import org.apache.fop.fo.flow.table.TableColumnColumnNumberTestCase;
import org.apache.fop.fo.flow.table.TooManyColumnsTestCase;
-import org.junit.runner.RunWith;
-import org.junit.runners.Suite;
/**
* JUnit test suit for running layout engine test under JUnit control.
*/
@RunWith(Suite.class)
-@Suite.SuiteClasses({ TooManyColumnsTestCase.class, IllegalRowSpanTestCase.class,
- RowGroupBuilderTestCase.class, TableColumnColumnNumberTestCase.class,
- CollapsedConditionalBorderTestCase.class, FOTreeTester.class })
+@Suite.SuiteClasses({
+ TooManyColumnsTestCase.class,
+ IllegalRowSpanTestCase.class,
+ RowGroupBuilderTestCase.class,
+ TableColumnColumnNumberTestCase.class,
+ CollapsedConditionalBorderTestCase.class,
+ FOTreeTestCase.class })
public final class FOTreeTestSuite {
}