From e3aa414108912be2602a0129ce3bd0a9519a2c92 Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Wed, 4 Aug 2021 15:10:09 +0200 Subject: [PATCH] Fxied tests according to the fixed gcube model --- .../resourceregistry/instances/ERManagementTest.java | 10 ++-------- .../instances/SmartgearResourcesTest.java | 3 +-- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/src/test/java/org/gcube/informationsystem/resourceregistry/instances/ERManagementTest.java b/src/test/java/org/gcube/informationsystem/resourceregistry/instances/ERManagementTest.java index c66eeb0..2ff5bbd 100644 --- a/src/test/java/org/gcube/informationsystem/resourceregistry/instances/ERManagementTest.java +++ b/src/test/java/org/gcube/informationsystem/resourceregistry/instances/ERManagementTest.java @@ -155,10 +155,7 @@ public class ERManagementTest extends ContextTest { EventFacet eventFacet = new EventFacetImpl(); eventFacet.setDate(Calendar.getInstance().getTime()); - ValueSchema event = new ValueSchemaImpl(); - event.setSchema(new URI("Schema")); - event.setValue("Created"); - eventFacet.setEvent(event); + eventFacet.setEvent("Created"); eService.addFacet(eventFacet); StateFacet stateFacet = new StateFacetImpl(); @@ -216,10 +213,7 @@ public class ERManagementTest extends ContextTest { EventFacet hnEventFacet = new EventFacetImpl(); hnEventFacet.setDate(Calendar.getInstance().getTime()); - ValueSchema hnEvent = new ValueSchemaImpl(); - hnEvent.setSchema(new URI("Schema")); - hnEvent.setValue("Created"); - hnEventFacet.setEvent(hnEvent); + hnEventFacet.setEvent("Created"); hostingNode.addFacet(hnEventFacet); return hostingNode; diff --git a/src/test/java/org/gcube/informationsystem/resourceregistry/instances/SmartgearResourcesTest.java b/src/test/java/org/gcube/informationsystem/resourceregistry/instances/SmartgearResourcesTest.java index 5d4dc95..1c5a988 100644 --- a/src/test/java/org/gcube/informationsystem/resourceregistry/instances/SmartgearResourcesTest.java +++ b/src/test/java/org/gcube/informationsystem/resourceregistry/instances/SmartgearResourcesTest.java @@ -164,8 +164,7 @@ public class SmartgearResourcesTest extends ERManagementTest { hnEventFacet.setDate(Calendar.getInstance().getTime()); ValueSchema hnEvent = new ValueSchemaImpl(); hnEvent.setSchema(new URI("Schema")); - hnEvent.setValue("Created"); - hnEventFacet.setEvent(hnEvent); + hnEventFacet.setEvent("Created"); hostingNode.addFacet(hnEventFacet);