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(){