You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@aries.apache.org by ro...@apache.org on 2021/11/17 18:46:38 UTC

[aries-jax-rs-whiteboard] 02/02: try to add diagnostic output for service property failures

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

rotty3000 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/aries-jax-rs-whiteboard.git

commit cc8c777bdc0bb2935ba89c238dceed11681092d5
Author: Raymond Auge <ro...@apache.org>
AuthorDate: Wed Nov 17 13:26:48 2021 -0500

    try to add diagnostic output for service property failures
    
    Signed-off-by: Raymond Auge <ro...@apache.org>
---
 .../org/apache/aries/jax/rs/rest/management/test/TestUtil.java    | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/integrations/rest-management/rest-management-itest/src/test/java/org/apache/aries/jax/rs/rest/management/test/TestUtil.java b/integrations/rest-management/rest-management-itest/src/test/java/org/apache/aries/jax/rs/rest/management/test/TestUtil.java
index 41a71c1..0d2259c 100644
--- a/integrations/rest-management/rest-management-itest/src/test/java/org/apache/aries/jax/rs/rest/management/test/TestUtil.java
+++ b/integrations/rest-management/rest-management-itest/src/test/java/org/apache/aries/jax/rs/rest/management/test/TestUtil.java
@@ -95,14 +95,16 @@ public class TestUtil {
     }
 
     protected URI runtimeURI(String... parts) {
-        String[] runtimes = canonicalize(
+        Object jaxRSServiceEndpointProperty =
             jaxrsServiceRuntimeAware.getServiceReference().getProperty(
-                JAX_RS_SERVICE_ENDPOINT));
+                JAX_RS_SERVICE_ENDPOINT);
+
+        String[] runtimes = canonicalize(jaxRSServiceEndpointProperty);
 
         if (runtimes.length == 0) {
             throw new IllegalStateException(
                 "No runtimes could be found on \"osgi.jaxrs.endpoint\" " +
-                    "runtime service property ");
+                    "runtime service property " + jaxRSServiceEndpointProperty);
         }
 
         String uriString = runtimes[0];