This is an automated email from the ASF dual-hosted git repository. rombert pushed a commit to annotated tag org.apache.sling.testing.sling-mock-1.5.0 in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-testing-sling-mock.git
commit 98328098c0a276b500750be0d09801c8ad4c8e79 Author: Stefan Seifert <[email protected]> AuthorDate: Thu Sep 3 22:45:43 2015 +0000 cosmetic: beautify error messages when setup/teardown fails git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/testing/mocks/sling-mock@1701144 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/sling/testing/mock/sling/junit/SlingContext.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/sling/testing/mock/sling/junit/SlingContext.java b/src/main/java/org/apache/sling/testing/mock/sling/junit/SlingContext.java index 117d9e8..2b8381b 100644 --- a/src/main/java/org/apache/sling/testing/mock/sling/junit/SlingContext.java +++ b/src/main/java/org/apache/sling/testing/mock/sling/junit/SlingContext.java @@ -132,7 +132,7 @@ public final class SlingContext extends SlingContextImpl implements TestRule { try { this.setUpCallback.execute(this); } catch (Throwable ex) { - throw new RuntimeException("Executing setup callback failed.", ex); + throw new RuntimeException("Setup failed: " + ex.getMessage(), ex); } } } @@ -142,7 +142,7 @@ public final class SlingContext extends SlingContextImpl implements TestRule { try { this.tearDownCallback.execute(this); } catch (Throwable ex) { - throw new RuntimeException("Executing setup callback failed.", ex); + throw new RuntimeException("Teardown failed: " + ex.getMessage(), ex); } } } -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
