diff --git a/src/main/java/org/gcube/informationsystem/resourceregistry/publisher/proxy/ResourceRegistryPublisherImpl.java b/src/main/java/org/gcube/informationsystem/resourceregistry/publisher/proxy/ResourceRegistryPublisherImpl.java index ec88120..c9b4be0 100644 --- a/src/main/java/org/gcube/informationsystem/resourceregistry/publisher/proxy/ResourceRegistryPublisherImpl.java +++ b/src/main/java/org/gcube/informationsystem/resourceregistry/publisher/proxy/ResourceRegistryPublisherImpl.java @@ -190,12 +190,12 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher } - class ResourceRegistryCall implements Call { + class ResourceRegistryPublisherCall implements Call { protected final Class clazz; protected final HTTPInputs httpInputs; - public ResourceRegistryCall(Class clazz, HTTPInputs httpInputs) { + public ResourceRegistryPublisherCall(Class clazz, HTTPInputs httpInputs) { this.clazz = clazz; this.httpInputs = httpInputs; } @@ -280,7 +280,7 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher logger.trace("Server returned content : {}", res); if(Boolean.class.isAssignableFrom(clazz)){ - return (C) ((Boolean) Boolean.getBoolean(res)) ; + return (C) ((Boolean) Boolean.valueOf(res)) ; }else if(ISManageable.class.isAssignableFrom(clazz)){ return (C) ISMapper.unmarshal((Class) clazz, res); } @@ -308,7 +308,7 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher HTTPInputs httpInputs = new HTTPInputs(stringWriter.toString(), HTTPMETHOD.PUT, null, body); - ResourceRegistryCall call = new ResourceRegistryCall<>( + ResourceRegistryPublisherCall call = new ResourceRegistryPublisherCall<>( facetClass, httpInputs); F f = delegate.make(call); @@ -336,7 +336,7 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher HTTPInputs httpInputs = new HTTPInputs(stringWriter.toString(), HTTPMETHOD.POST, null, body); - ResourceRegistryCall call = new ResourceRegistryCall<>( + ResourceRegistryPublisherCall call = new ResourceRegistryPublisherCall<>( facetClass, httpInputs); F f = delegate.make(call); @@ -363,7 +363,7 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher HTTPInputs httpInputs = new HTTPInputs(stringWriter.toString(), HTTPMETHOD.DELETE, null); - ResourceRegistryCall call = new ResourceRegistryCall<>( + ResourceRegistryPublisherCall call = new ResourceRegistryPublisherCall<>( Boolean.class, httpInputs); boolean deleted = delegate.make(call); @@ -394,7 +394,7 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher HTTPInputs httpInputs = new HTTPInputs(stringWriter.toString(), HTTPMETHOD.PUT, null, body); - ResourceRegistryCall call = new ResourceRegistryCall<>( + ResourceRegistryPublisherCall call = new ResourceRegistryPublisherCall<>( resourceClass, httpInputs); R r = delegate.make(call); @@ -424,7 +424,7 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher HTTPInputs httpInputs = new HTTPInputs(stringWriter.toString(), HTTPMETHOD.POST, null, body); - ResourceRegistryCall call = new ResourceRegistryCall<>( + ResourceRegistryPublisherCall call = new ResourceRegistryPublisherCall<>( resourceClass, httpInputs); R r = delegate.make(call); @@ -451,7 +451,7 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher HTTPInputs httpInputs = new HTTPInputs(stringWriter.toString(), HTTPMETHOD.DELETE, null); - ResourceRegistryCall call = new ResourceRegistryCall<>( + ResourceRegistryPublisherCall call = new ResourceRegistryPublisherCall<>( Boolean.class, httpInputs); boolean deleted = delegate.make(call); @@ -492,7 +492,7 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher HTTPInputs httpInputs = new HTTPInputs(stringWriter.toString(), HTTPMETHOD.PUT, null, body); - ResourceRegistryCall call = new ResourceRegistryCall<>( + ResourceRegistryPublisherCall call = new ResourceRegistryPublisherCall<>( consistsOfClass, httpInputs); C c = delegate.make(call); @@ -520,7 +520,7 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher HTTPInputs httpInputs = new HTTPInputs(stringWriter.toString(), HTTPMETHOD.DELETE, null); - ResourceRegistryCall call = new ResourceRegistryCall<>( + ResourceRegistryPublisherCall call = new ResourceRegistryPublisherCall<>( Boolean.class, httpInputs); boolean deleted = delegate.make(call); @@ -562,7 +562,7 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher HTTPInputs httpInputs = new HTTPInputs(stringWriter.toString(), HTTPMETHOD.PUT, null, body); - ResourceRegistryCall call = new ResourceRegistryCall<>( + ResourceRegistryPublisherCall call = new ResourceRegistryPublisherCall<>( isRelatedToClass, httpInputs); I i = delegate.make(call); @@ -590,7 +590,7 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher HTTPInputs httpInputs = new HTTPInputs(stringWriter.toString(), HTTPMETHOD.DELETE, null); - ResourceRegistryCall call = new ResourceRegistryCall<>( + ResourceRegistryPublisherCall call = new ResourceRegistryPublisherCall<>( Boolean.class, httpInputs); boolean deleted = delegate.make(call); @@ -625,7 +625,7 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher HTTPInputs httpInputs = new HTTPInputs(stringWriter.toString(), HTTPMETHOD.POST, null); - ResourceRegistryCall call = new ResourceRegistryCall<>( + ResourceRegistryPublisherCall call = new ResourceRegistryPublisherCall<>( Boolean.class, httpInputs); boolean added = delegate.make(call); @@ -668,7 +668,7 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher HTTPInputs httpInputs = new HTTPInputs(stringWriter.toString(), HTTPMETHOD.POST, null); - ResourceRegistryCall call = new ResourceRegistryCall<>( + ResourceRegistryPublisherCall call = new ResourceRegistryPublisherCall<>( Boolean.class, httpInputs); boolean added = delegate.make(call); @@ -713,7 +713,7 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher HTTPInputs httpInputs = new HTTPInputs(stringWriter.toString(), HTTPMETHOD.POST, null); - ResourceRegistryCall call = new ResourceRegistryCall<>( + ResourceRegistryPublisherCall call = new ResourceRegistryPublisherCall<>( Boolean.class, httpInputs); boolean removed = delegate.make(call); @@ -757,7 +757,7 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher HTTPInputs httpInputs = new HTTPInputs(stringWriter.toString(), HTTPMETHOD.POST, null); - ResourceRegistryCall call = new ResourceRegistryCall<>( + ResourceRegistryPublisherCall call = new ResourceRegistryPublisherCall<>( Boolean.class, httpInputs); boolean removed = delegate.make(call); diff --git a/src/test/java/org/gcube/informationsystem/resourceregistry/publisher/ScopedTest.java b/src/test/java/org/gcube/informationsystem/resourceregistry/publisher/ScopedTest.java index 4732ef8..753ba72 100644 --- a/src/test/java/org/gcube/informationsystem/resourceregistry/publisher/ScopedTest.java +++ b/src/test/java/org/gcube/informationsystem/resourceregistry/publisher/ScopedTest.java @@ -59,8 +59,8 @@ public class ScopedTest { GCUBE_DEVSEC = properties.getProperty(GCUBE_DEVSEC_VARNAME); GCUBE_DEVSEC_DEVVRE = properties.getProperty(GCUBE_DEVSEC_DEVVRE_VARNAME); - DEFAULT_TEST_SCOPE = GCUBE_DEVSEC; - ALTERNATIVE_TEST_SCOPE = GCUBE_DEVSEC_DEVVRE; + DEFAULT_TEST_SCOPE = GCUBE_DEVNEXT; + ALTERNATIVE_TEST_SCOPE = GCUBE_DEVNEXT_NEXTNEXT; } public static String getCurrentScope(String token) throws ObjectNotFound, Exception{