From 292272a72ec680655fb3292236e6e079044a0421 Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Mon, 4 Nov 2024 14:42:12 +0100 Subject: [PATCH] Added Test --- .../utils/MetadataUtilityTest.java | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/test/java/org/gcube/informationsystem/resourceregistry/utils/MetadataUtilityTest.java diff --git a/src/test/java/org/gcube/informationsystem/resourceregistry/utils/MetadataUtilityTest.java b/src/test/java/org/gcube/informationsystem/resourceregistry/utils/MetadataUtilityTest.java new file mode 100644 index 0000000..e6dc45e --- /dev/null +++ b/src/test/java/org/gcube/informationsystem/resourceregistry/utils/MetadataUtilityTest.java @@ -0,0 +1,21 @@ +package org.gcube.informationsystem.resourceregistry.utils; + +import org.gcube.informationsystem.resourceregistry.ContextTest; +import org.junit.Test; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +/** + * @author Luca Frosini (ISTI - CNR) + */ +public class MetadataUtilityTest extends ContextTest { + + private static final Logger logger = LoggerFactory.getLogger(MetadataUtilityTest.class); + + @Test + public void testGetUsername() { + String username = MetadataUtility.getUser(); + logger.info("Current User username is {}", username); + } + +}