37 lines
896 B
Java
37 lines
896 B
Java
|
package org.gcube.informationsystem.sweeper;
|
||
|
|
||
|
import java.util.HashMap;
|
||
|
import java.util.Map;
|
||
|
|
||
|
import org.gcube.common.authorization.library.provider.SecurityTokenProvider;
|
||
|
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(){
|
||
|
SecurityTokenProvider.instance.set("");
|
||
|
}
|
||
|
|
||
|
@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");
|
||
|
}
|
||
|
|
||
|
}
|