Fxied tests according to the fixed gcube model

This commit is contained in:
Luca Frosini 2021-08-04 15:10:09 +02:00
parent 7bb49b1f4c
commit e3aa414108
2 changed files with 3 additions and 10 deletions

View File

@ -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;

View File

@ -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);