30 lines
594 B
Java
30 lines
594 B
Java
/**
|
|
*
|
|
*/
|
|
package org.gcube.testutility;
|
|
|
|
import org.gcube.common.authorization.library.provider.SecurityTokenProvider;
|
|
import org.gcube.common.scope.api.ScopeProvider;
|
|
import org.junit.After;
|
|
import org.junit.Before;
|
|
|
|
/**
|
|
* @author Luca Frosini (ISTI - CNR)
|
|
*
|
|
*/
|
|
public class ScopedTest {
|
|
|
|
@Before
|
|
public void before() throws Exception{
|
|
SecurityTokenProvider.instance.set(TestUtility.TOKEN);
|
|
ScopeProvider.instance.set("/gcube/devNext/NextNext");
|
|
}
|
|
|
|
@After
|
|
public void after() throws Exception{
|
|
SecurityTokenProvider.instance.reset();
|
|
ScopeProvider.instance.reset();
|
|
}
|
|
|
|
}
|