You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by js...@apache.org on 2021/06/17 14:16:46 UTC

[sling-org-apache-sling-junit-core] branch feature/SLING-10497-junit-jupiter-parameter-resolver-for-osgi updated: adjust test

This is an automated email from the ASF dual-hosted git repository.

jsedding pushed a commit to branch feature/SLING-10497-junit-jupiter-parameter-resolver-for-osgi
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-junit-core.git


The following commit(s) were added to refs/heads/feature/SLING-10497-junit-jupiter-parameter-resolver-for-osgi by this push:
     new dcf79cc  adjust test
dcf79cc is described below

commit dcf79cc9aa9cad663b7a3e5601037ee35d430aa4
Author: Julian Sedding <js...@apache.org>
AuthorDate: Thu Jun 17 16:16:18 2021 +0200

    adjust test
---
 .../java/org/apache/sling/junit/jupiter/osgi/OSGiAnnotationTest.java | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/test/java/org/apache/sling/junit/jupiter/osgi/OSGiAnnotationTest.java b/src/test/java/org/apache/sling/junit/jupiter/osgi/OSGiAnnotationTest.java
index e315622..269729e 100644
--- a/src/test/java/org/apache/sling/junit/jupiter/osgi/OSGiAnnotationTest.java
+++ b/src/test/java/org/apache/sling/junit/jupiter/osgi/OSGiAnnotationTest.java
@@ -285,9 +285,10 @@ public class OSGiAnnotationTest {
             case 0:
                 break;
             case 1:
-                fail(failures.get(0).getException());
+                fail("Got one failure instead of none", failures.get(0).getException());
             default:
-                throw new MultipleFailuresError(null, failures.stream().map(TestExecutionSummary.Failure::getException).collect(Collectors.toList()));
+                fail("Got " + failures.size() + " failures instead of none",
+                        new MultipleFailuresError(null, failures.stream().map(TestExecutionSummary.Failure::getException).collect(Collectors.toList())));
         }
     }