maven-surefire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dfabul...@apache.org
Subject svn commit: r597956 - /maven/surefire/trunk/surefire-api/src/main/java/org/apache/maven/surefire/Surefire.java
Date Sun, 25 Nov 2007 05:32:48 GMT
Author: dfabulich
Date: Sat Nov 24 21:32:44 2007
New Revision: 597956

URL: http://svn.apache.org/viewvc?rev=597956&view=rev
Log:
Adding delegate methods for backwards compatibility

Modified:
    maven/surefire/trunk/surefire-api/src/main/java/org/apache/maven/surefire/Surefire.java

Modified: maven/surefire/trunk/surefire-api/src/main/java/org/apache/maven/surefire/Surefire.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-api/src/main/java/org/apache/maven/surefire/Surefire.java?rev=597956&r1=597955&r2=597956&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-api/src/main/java/org/apache/maven/surefire/Surefire.java
(original)
+++ maven/surefire/trunk/surefire-api/src/main/java/org/apache/maven/surefire/Surefire.java
Sat Nov 24 21:32:44 2007
@@ -48,6 +48,15 @@
 
     public static final String SUREFIRE_BUNDLE_NAME = "org.apache.maven.surefire.surefire";
 
+    // DGF backwards compatibility
+    public boolean run( List reportDefinitions, Object[] testSuiteDefinition, String testSetName,
+                    ClassLoader surefireClassLoader, ClassLoader testsClassLoader)
+        throws ReporterException, TestSetFailedException
+    {
+        return run( reportDefinitions, testSuiteDefinition, testSetName, surefireClassLoader,
testsClassLoader, null,
+                    Boolean.FALSE ) == 0;
+    }
+    
     public int run( List reportDefinitions, Object[] testSuiteDefinition, String testSetName,
                         ClassLoader surefireClassLoader, ClassLoader testsClassLoader, Boolean
failIfNoTests )
         throws ReporterException, TestSetFailedException
@@ -55,6 +64,15 @@
         return run( reportDefinitions, testSuiteDefinition, testSetName, surefireClassLoader,
testsClassLoader, null, failIfNoTests );
     }
 
+    // DGF backwards compatibility
+    public boolean run( List reportDefinitions, Object[] testSuiteDefinition, String testSetName,
+                    ClassLoader surefireClassLoader, ClassLoader testsClassLoader, Properties
results )
+        throws ReporterException, TestSetFailedException
+    {
+        return run( reportDefinitions, testSuiteDefinition, testSetName, surefireClassLoader,
testsClassLoader,
+                    results, Boolean.FALSE ) == 0;
+    }
+    
     public int run( List reportDefinitions, Object[] testSuiteDefinition, String testSetName,
                         ClassLoader surefireClassLoader, ClassLoader testsClassLoader, Properties
results, Boolean failIfNoTests )
         throws ReporterException, TestSetFailedException
@@ -115,6 +133,12 @@
 
     }
 
+    public boolean run( List reportDefinitions, List testSuiteDefinitions, ClassLoader surefireClassLoader,
+                        ClassLoader testsClassLoader )
+        throws ReporterException, TestSetFailedException
+    {
+        return run ( reportDefinitions, testSuiteDefinitions, surefireClassLoader, testsClassLoader,
Boolean.FALSE ) == 0;
+    }
     public int run( List reportDefinitions, List testSuiteDefinitions, ClassLoader surefireClassLoader,
                         ClassLoader testsClassLoader, Boolean failIfNoTests )
         throws ReporterException, TestSetFailedException



Mime
View raw message