You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bd...@apache.org on 2020/11/05 16:30:52 UTC
[sling-org-apache-sling-adapter-annotations-it] 04/07: SLING-2938 -
Add better error reporting to the adapter registration IT
This is an automated email from the ASF dual-hosted git repository.
bdelacretaz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-adapter-annotations-it.git
commit c8a13b5b9a737ea9de3c0eb1ada26fbbff8e5a61
Author: Henry Kuijpers <He...@amplexor.com>
AuthorDate: Mon Nov 2 19:33:30 2020 +0100
SLING-2938 - Add better error reporting to the adapter registration IT
---
.../org/apache/sling/adapter/annotations/AdapterRegistrationIT.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/test/java/org/apache/sling/adapter/annotations/AdapterRegistrationIT.java b/src/test/java/org/apache/sling/adapter/annotations/AdapterRegistrationIT.java
index bd0666d..71c072e 100644
--- a/src/test/java/org/apache/sling/adapter/annotations/AdapterRegistrationIT.java
+++ b/src/test/java/org/apache/sling/adapter/annotations/AdapterRegistrationIT.java
@@ -55,8 +55,9 @@ public class AdapterRegistrationIT implements AdapterAnnotationsIT {
public static void setUpAdaptions() throws ClientException, InterruptedException, TimeoutException, URISyntaxException, IOException {
try (final OsgiConsoleClient client = AppSlingClient.newSlingClient().adaptTo(OsgiConsoleClient.class)) {
registeredAdaptions = new HashSet<>();
- final ServicesInfo services = new ServicesInfo(JsonUtils.getJsonNodeFromString(
- client.doGet("/system/console/services.json").getContent()));
+ final String servicesString = client.doGet("/system/console/services.json").getContent();
+ System.err.println(servicesString);
+ final ServicesInfo services = new ServicesInfo(JsonUtils.getJsonNodeFromString(servicesString));
for (final ServiceInfo serviceInfo : services.forType(Adaption.class.getName())) {
final String content = client.doGet("/system/console/services/" + serviceInfo.getId() + ".json").getContent();
try {