Rename context resource.

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@179109 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Manuele Simi 2019-04-22 15:44:36 +00:00
parent 79523020dd
commit a38e34406b
4 changed files with 13 additions and 14 deletions

View File

@ -4,7 +4,7 @@ import javax.ws.rs.ApplicationPath;
import javax.ws.rs.core.MediaType;
import org.gcube.resourcemanagement.manager.io.rs.RMContextsAccess;
import org.gcube.resourcemanagement.manager.webapp.rs.RMContexts;
import org.gcube.resourcemanagement.manager.webapp.rs.RMContext;
import org.gcube.resourcemanagement.manager.webapp.rs.RMTestForGXRest;
import org.glassfish.jersey.server.ResourceConfig;
@ -18,7 +18,7 @@ public class ResourceInitializer extends ResourceConfig {
public ResourceInitializer(){
//where jersey will find the operation's handler
packages(RMContexts.class.getPackage().toString(),RMTestForGXRest.class.getPackage().toString());
packages(RMContext.class.getPackage().toString(),RMTestForGXRest.class.getPackage().toString());
}
}

View File

@ -33,9 +33,9 @@ import java.util.UUID;
*
*/
@Path(CONTEXT_ROOT)
public class RMContexts {
public class RMContext {
private static Logger logger = LoggerFactory.getLogger(RMContexts.class);
private static Logger logger = LoggerFactory.getLogger(RMContext.class);
/*
* e.g. POST

View File

@ -13,12 +13,12 @@ import javax.ws.rs.core.Response;
import javax.ws.rs.core.Response.Status;
import org.gcube.common.authorization.client.Constants;
import org.gcube.common.authorization.client.exceptions.ObjectNotFound;
import org.gcube.common.authorization.library.AuthorizationEntry;
import org.gcube.common.authorization.library.provider.SecurityTokenProvider;
import org.gcube.common.gxrest.response.inbound.GXInboundResponse;
import org.gcube.common.scope.api.ScopeProvider;
import org.gcube.resourcemanagement.manager.io.rs.RMContextsAccess;
import org.gcube.resourcemanagement.manager.webapp.rs.RMContext;
import org.gcube.resourcemanagement.manager.webapp.rs.RMTestForGXRest;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
@ -109,7 +109,7 @@ public class GXRestTest extends JerseyTest {
/**
* Test method for
* {@link org.gcube.resourcemanagement.manager.webapp.rs.RMContexts#delete(String, String)}
* {@link RMContext#delete(String, String)}
*
* @throws Exception
*/

View File

@ -14,7 +14,6 @@ import javax.ws.rs.core.Response;
import javax.ws.rs.core.Response.Status;
import org.gcube.common.authorization.client.Constants;
import org.gcube.common.authorization.client.exceptions.ObjectNotFound;
import org.gcube.common.authorization.library.AuthorizationEntry;
import org.gcube.common.authorization.library.provider.SecurityTokenProvider;
import org.gcube.common.gxrest.response.inbound.GXInboundResponse;
@ -28,7 +27,7 @@ import org.gcube.informationsystem.resourceregistry.context.ResourceRegistryCont
import org.gcube.informationsystem.utils.ISMapper;
import org.gcube.resourcemanagement.manager.io.rs.RMCreateContextCode;
import org.gcube.resourcemanagement.manager.io.rs.RMContextsAccess;
import org.gcube.resourcemanagement.manager.webapp.rs.RMContexts;
import org.gcube.resourcemanagement.manager.webapp.rs.RMContext;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
import org.junit.AfterClass;
@ -122,7 +121,7 @@ public class RMContextTest extends JerseyTest {
@Override
protected Application configure() {
return new ResourceConfig(RMContexts.class);
return new ResourceConfig(RMContext.class);
}
/**
@ -146,7 +145,7 @@ public class RMContextTest extends JerseyTest {
/**
* Test method for
* {@link org.gcube.resourcemanagement.manager.webapp.rs.RMContexts#create(String, String)}.
* {@link RMContext#create(String, String)}.
*
* @throws Exception
*/
@ -191,7 +190,7 @@ public class RMContextTest extends JerseyTest {
/**
* Test method for
* {@link org.gcube.resourcemanagement.manager.webapp.rs.RMContexts#create(String, String)}
* {@link RMContext#create(String, String)}
* when the parent does not exist.
*/
@Test
@ -220,7 +219,7 @@ public class RMContextTest extends JerseyTest {
/**
* Test method for
* {@link org.gcube.resourcemanagement.manager.webapp.rs.RMContexts#create(String, String)}.
* {@link RMContext#create(String, String)}.
* when the parent does not exist.
*/
@Test
@ -250,7 +249,7 @@ public class RMContextTest extends JerseyTest {
/**
* Test method for
* {@link org.gcube.resourcemanagement.manager.webapp.rs.RMContexts#delete(String, String)}
* {@link RMContext#delete(String, String)}
*
* @throws Exception
*/
@ -282,7 +281,7 @@ public class RMContextTest extends JerseyTest {
/**
* Test method for
* {@link org.gcube.resourcemanagement.manager.webapp.rs.RMContexts#delete(String, String)}
* {@link RMContext#delete(String, String)}
*/
@Test
public void step5_DeleteParent() {