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
|
|
|
|
|
|
|
//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) http://www.lucafrosini.com/
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
public class ScopedTest {
|
|
|
|
|
|
|
|
@Before
|
|
|
|
public void before() throws Exception{
|
|
|
|
//SecurityTokenProvider.instance.set(TestUtility.TOKEN);
|
|
|
|
ScopeProvider.instance.set("/gcube/devsec");
|
|
|
|
}
|
|
|
|
|
|
|
|
@After
|
|
|
|
public void after() throws Exception{
|
|
|
|
//SecurityTokenProvider.instance.reset();
|
|
|
|
ScopeProvider.instance.reset();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|