From 89a6a7f404f30c9ac99fe06f44ab1c9420947ae6 Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Wed, 4 Nov 2020 19:12:52 +0100 Subject: [PATCH] Improved test --- .../resourceregistry/publisher/MultiContextTest.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/test/java/org/gcube/informationsystem/resourceregistry/publisher/MultiContextTest.java b/src/test/java/org/gcube/informationsystem/resourceregistry/publisher/MultiContextTest.java index cbe4867..233ca4a 100644 --- a/src/test/java/org/gcube/informationsystem/resourceregistry/publisher/MultiContextTest.java +++ b/src/test/java/org/gcube/informationsystem/resourceregistry/publisher/MultiContextTest.java @@ -240,6 +240,16 @@ public class MultiContextTest extends ContextTest { logger.debug("{} : {}", c.getHeader().getUUID(), contextCache.getContextFullNameByUUID(uuid)); } } + + Context currentContext = resourceRegistryPublisher.getCurrentContext(); + logger.debug("Current context : {}", currentContext); + + for(Context c : contexts) { + UUID uuid = c.getHeader().getUUID(); + Context context = resourceRegistryPublisher.getContext(uuid); + String fullName = ContextCache.getInstance().getContextFullNameByUUID(uuid); + logger.debug("{} - {} : {}", uuid, fullName, context); + } } }