feature_22286 #6
|
@ -12,7 +12,6 @@ import org.gcube.common.authorization.library.provider.SecurityTokenProvider;
|
||||||
import org.gcube.common.scope.api.ScopeProvider;
|
import org.gcube.common.scope.api.ScopeProvider;
|
||||||
import org.gcube.portlets.user.geoportaldataentry.server.config.GNARoleRitghtsConfigReader;
|
import org.gcube.portlets.user.geoportaldataentry.server.config.GNARoleRitghtsConfigReader;
|
||||||
import org.gcube.portlets.user.geoportaldataentry.shared.RoleRights;
|
import org.gcube.portlets.user.geoportaldataentry.shared.RoleRights;
|
||||||
import org.gcube.portlets.user.geoportaldataentry.shared.UserRights;
|
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
@ -36,7 +35,7 @@ public class TestClass {
|
||||||
|
|
||||||
// getListOfConcessioni();
|
// getListOfConcessioni();
|
||||||
|
|
||||||
@Before
|
//@Before
|
||||||
public void init() {
|
public void init() {
|
||||||
ScopeProvider.instance.set(CONTEXT);
|
ScopeProvider.instance.set(CONTEXT);
|
||||||
SecurityTokenProvider.instance.set(TOKEN);
|
SecurityTokenProvider.instance.set(TOKEN);
|
||||||
|
@ -60,7 +59,7 @@ public class TestClass {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
//@Test
|
||||||
public void readUserRights() throws Exception {
|
public void readUserRights() throws Exception {
|
||||||
new GNARoleRitghtsConfigReader();
|
new GNARoleRitghtsConfigReader();
|
||||||
List<RoleRights> listUserRights = GNARoleRitghtsConfigReader.readRoleRightsConfig();
|
List<RoleRights> listUserRights = GNARoleRitghtsConfigReader.readRoleRightsConfig();
|
||||||
|
|
Loading…
Reference in New Issue