directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r894334 - /directory/apacheds/branches/apacheds-schema/test-framework/src/main/java/org/apache/directory/server/core/integ/FrameworkSuite.java
Date Tue, 29 Dec 2009 10:05:04 GMT
Author: kayyagari
Date: Tue Dec 29 10:05:02 2009
New Revision: 894334

URL: http://svn.apache.org/viewvc?rev=894334&view=rev
Log:
fixed a classcastexception when the runner type is not that of FrameworkRunner

Modified:
    directory/apacheds/branches/apacheds-schema/test-framework/src/main/java/org/apache/directory/server/core/integ/FrameworkSuite.java

Modified: directory/apacheds/branches/apacheds-schema/test-framework/src/main/java/org/apache/directory/server/core/integ/FrameworkSuite.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-schema/test-framework/src/main/java/org/apache/directory/server/core/integ/FrameworkSuite.java?rev=894334&r1=894333&r2=894334&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-schema/test-framework/src/main/java/org/apache/directory/server/core/integ/FrameworkSuite.java
(original)
+++ directory/apacheds/branches/apacheds-schema/test-framework/src/main/java/org/apache/directory/server/core/integ/FrameworkSuite.java
Tue Dec 29 10:05:02 2009
@@ -126,10 +126,18 @@
     protected void runChild( Runner runner, RunNotifier notifier )
     {
         // Store the suite into the class we will run
-        ( ( FrameworkRunner ) runner ).setSuite( this );
-        
-        // Now, call the class containing the tests
-        super.runChild( runner, notifier );
+        if( runner instanceof FrameworkRunner )
+        {
+            ( ( FrameworkRunner ) runner ).setSuite( this );
+            
+            // Now, call the class containing the tests
+            super.runChild( runner, notifier );
+        }
+        else
+        {
+            // there is something called org.junit.internal.builders.IgnoredClassRunner
+            super.runChild( runner, notifier );
+        }
     }
 
 



Mime
View raw message