2021-11-09 14:31:58 +01:00
|
|
|
package org.gcube.data.publishing.gCatFeeder.collectors.dm;
|
|
|
|
|
|
|
|
import org.gcube.common.authorization.library.provider.SecurityTokenProvider;
|
|
|
|
import org.gcube.data.publishing.gCatFeeder.tests.BaseCollectorTest;
|
|
|
|
import org.gcube.data.publishing.gCatFeeder.tests.TokenSetter;
|
|
|
|
import org.gcube.portlets.user.uriresolvermanager.exception.IllegalArgumentException;
|
|
|
|
import org.gcube.portlets.user.uriresolvermanager.exception.UriResolverMapException;
|
|
|
|
import org.junit.Test;
|
|
|
|
|
|
|
|
public class ItemUrlTests extends BaseCollectorTest {
|
|
|
|
|
|
|
|
@Test
|
|
|
|
public void getItemURL() throws UriResolverMapException, IllegalArgumentException {
|
2022-05-19 15:55:28 +02:00
|
|
|
TokenSetter.set("/pred4s/preprod/preVRE");
|
2021-11-09 14:31:58 +01:00
|
|
|
String name = "fake";
|
|
|
|
System.out.println(new URIResolver().getCatalogueItemURL(name));
|
|
|
|
}
|
|
|
|
}
|