You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ch...@apache.org on 2013/10/30 12:33:26 UTC

svn commit: r1537052 - /sling/trunk/testing/tools/src/main/java/org/apache/sling/testing/tools/junit/TestDescriptionRule.java

Author: chetanm
Date: Wed Oct 30 11:33:25 2013
New Revision: 1537052

URL: http://svn.apache.org/r1537052
Log:
SLING-3000 Support propagation of executing testName to server

Changing the order of method calls in finished and starting

Modified:
    sling/trunk/testing/tools/src/main/java/org/apache/sling/testing/tools/junit/TestDescriptionRule.java

Modified: sling/trunk/testing/tools/src/main/java/org/apache/sling/testing/tools/junit/TestDescriptionRule.java
URL: http://svn.apache.org/viewvc/sling/trunk/testing/tools/src/main/java/org/apache/sling/testing/tools/junit/TestDescriptionRule.java?rev=1537052&r1=1537051&r2=1537052&view=diff
==============================================================================
--- sling/trunk/testing/tools/src/main/java/org/apache/sling/testing/tools/junit/TestDescriptionRule.java (original)
+++ sling/trunk/testing/tools/src/main/java/org/apache/sling/testing/tools/junit/TestDescriptionRule.java Wed Oct 30 11:33:25 2013
@@ -28,12 +28,12 @@ public class TestDescriptionRule extends
 
     @Override
     protected void finished(Description description) {
-        currentTestDescription.set(description);
+        currentTestDescription.remove();
     }
 
     @Override
     protected void starting(Description description) {
-        currentTestDescription.remove();
+        currentTestDescription.set(description);
     }
 
     public static Description getCurrentTestDescription(){