directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r892442 - in /directory/sandbox/kayyagari/integ-test-framework: pom.xml src/test/java/org/apache/directory/server/core/integ/FrameworkSuite.java
Date Sat, 19 Dec 2009 07:41:50 GMT
Author: kayyagari
Date: Sat Dec 19 07:41:50 2009
New Revision: 892442

URL: http://svn.apache.org/viewvc?rev=892442&view=rev
Log:
o bumped the junit version to 4.7
o overwritten the runChild() method in FrameworkSuite

Modified:
    directory/sandbox/kayyagari/integ-test-framework/pom.xml
    directory/sandbox/kayyagari/integ-test-framework/src/test/java/org/apache/directory/server/core/integ/FrameworkSuite.java

Modified: directory/sandbox/kayyagari/integ-test-framework/pom.xml
URL: http://svn.apache.org/viewvc/directory/sandbox/kayyagari/integ-test-framework/pom.xml?rev=892442&r1=892441&r2=892442&view=diff
==============================================================================
--- directory/sandbox/kayyagari/integ-test-framework/pom.xml (original)
+++ directory/sandbox/kayyagari/integ-test-framework/pom.xml Sat Dec 19 07:41:50 2009
@@ -11,7 +11,7 @@
     <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
-      <version>4.5</version>
+      <version>4.7</version>
       <scope>test</scope>
     </dependency>
   </dependencies>

Modified: directory/sandbox/kayyagari/integ-test-framework/src/test/java/org/apache/directory/server/core/integ/FrameworkSuite.java
URL: http://svn.apache.org/viewvc/directory/sandbox/kayyagari/integ-test-framework/src/test/java/org/apache/directory/server/core/integ/FrameworkSuite.java?rev=892442&r1=892441&r2=892442&view=diff
==============================================================================
--- directory/sandbox/kayyagari/integ-test-framework/src/test/java/org/apache/directory/server/core/integ/FrameworkSuite.java
(original)
+++ directory/sandbox/kayyagari/integ-test-framework/src/test/java/org/apache/directory/server/core/integ/FrameworkSuite.java
Sat Dec 19 07:41:50 2009
@@ -40,10 +40,18 @@
 
 
     @Override
+    protected void runChild( Runner runner, RunNotifier notifier )
+    {
+        ( ( FrameworkRunner ) runner ).setSuite( this );
+        super.runChild( runner, notifier );
+    }
+
+
+    @Override
     public void run( final RunNotifier notifier )
     {
         Factory fac = getDescription().getAnnotation( Factory.class );
-        if( fac != null )
+        if ( fac != null )
         {
             System.out.println( fac.value() );
         }
@@ -51,14 +59,8 @@
         {
             System.out.println( "no annotation found" );
         }
-        
-        for ( Runner child : getChildren() )
-        {
-            ((FrameworkRunner)child).setSuite( this );
-        }
-        
-        super.run( notifier );
 
+        super.run( notifier );
     }
 
 }



Mime
View raw message