2016-02-12 17:56:12 +01:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
2016-02-17 14:17:31 +01:00
|
|
|
package org.gcube.testutility;
|
2016-02-12 17:56:12 +01:00
|
|
|
|
2016-09-23 14:24:23 +02:00
|
|
|
import org.gcube.common.authorization.library.provider.SecurityTokenProvider;
|
2016-02-12 17:56:12 +01:00
|
|
|
import org.gcube.common.scope.api.ScopeProvider;
|
|
|
|
import org.junit.After;
|
|
|
|
import org.junit.Before;
|
|
|
|
|
|
|
|
/**
|
2016-10-12 14:24:02 +02:00
|
|
|
* @author Luca Frosini (ISTI - CNR)
|
2016-02-12 17:56:12 +01:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
public class ScopedTest {
|
|
|
|
|
|
|
|
@Before
|
|
|
|
public void before() throws Exception{
|
2016-09-23 14:24:23 +02:00
|
|
|
SecurityTokenProvider.instance.set(TestUtility.TOKEN);
|
|
|
|
ScopeProvider.instance.set("/gcube/devNext/NextNext");
|
2016-02-12 17:56:12 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@After
|
|
|
|
public void after() throws Exception{
|
2016-09-23 14:24:23 +02:00
|
|
|
SecurityTokenProvider.instance.reset();
|
2016-02-12 17:56:12 +01:00
|
|
|
ScopeProvider.instance.reset();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|