44 lines
1.0 KiB
Java
44 lines
1.0 KiB
Java
package org.gcube.informationsystem.sweeper;
|
|
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
|
|
import org.gcube.common.authorization.library.provider.SecurityTokenProvider;
|
|
import org.gcube.utils.TestUtility;
|
|
import org.junit.After;
|
|
import org.junit.Before;
|
|
import org.junit.Test;
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
/**
|
|
* @author Luca Frosini (ISTI - CNR) http://www.lucafrosini.com/
|
|
*/
|
|
public class ISSweeperPluginTest {
|
|
|
|
/**
|
|
* Logger
|
|
*/
|
|
private static Logger logger = LoggerFactory.getLogger(ISSweeperPluginTest.class);
|
|
|
|
@Before
|
|
public void before() throws Exception{
|
|
SecurityTokenProvider.instance.set(TestUtility.TOKEN);
|
|
}
|
|
|
|
@After
|
|
public void after(){
|
|
SecurityTokenProvider.instance.reset();
|
|
}
|
|
|
|
@Test
|
|
public void testLaunch() throws Exception {
|
|
logger.debug("Starting to test launch");
|
|
Map<String, Object> inputs = new HashMap<String, Object>();
|
|
ISSweeperPlugin couchDBQueryPlugin = new ISSweeperPlugin(null);
|
|
couchDBQueryPlugin.launch(inputs);
|
|
logger.debug("-------------- launch test finished");
|
|
}
|
|
|
|
}
|