Fixed tests
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/private/luca.frosini/infrastructure-tests@128061 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
3cf5d338ec
commit
5b68f1709f
|
@ -15,6 +15,7 @@ import org.gcube.vremanagement.executor.client.plugins.ExecutorPlugin;
|
||||||
import org.gcube.vremanagement.executor.client.proxies.SmartExecutorProxy;
|
import org.gcube.vremanagement.executor.client.proxies.SmartExecutorProxy;
|
||||||
import org.junit.Assert;
|
import org.junit.Assert;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
|
import org.junit.Test;
|
||||||
import org.quartz.CronExpression;
|
import org.quartz.CronExpression;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
@ -39,6 +40,8 @@ public class ISSweeperPluginSmartExecutorSchedulerTest extends ScopedTest {
|
||||||
public UUID scheduleTest(Scheduling scheduling, Long sleepTime) throws Exception {
|
public UUID scheduleTest(Scheduling scheduling, Long sleepTime) throws Exception {
|
||||||
Map<String, Object> inputs = new HashMap<String, Object>();
|
Map<String, Object> inputs = new HashMap<String, Object>();
|
||||||
logger.debug("Inputs : {}", inputs);
|
logger.debug("Inputs : {}", inputs);
|
||||||
|
inputs.put(ISSweeperPlugin.EXPIRING_MINUTES_TIMEOUT, 15);
|
||||||
|
inputs.put(ISSweeperPlugin.DEAD_DAYS_TIMEOUT, 3);
|
||||||
|
|
||||||
LaunchParameter parameter = new LaunchParameter(ISSweeperPluginDeclaration.NAME, inputs);
|
LaunchParameter parameter = new LaunchParameter(ISSweeperPluginDeclaration.NAME, inputs);
|
||||||
parameter.setScheduling(scheduling);
|
parameter.setScheduling(scheduling);
|
||||||
|
|
|
@ -0,0 +1,27 @@
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
package org.gcube.test;
|
||||||
|
|
||||||
|
import org.junit.Test;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Luca Frosini (ISTI - CNR) http://www.lucafrosini.com/
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public class TempTest {
|
||||||
|
|
||||||
|
private static final Logger logger = LoggerFactory.getLogger(TempTest.class);
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test(){
|
||||||
|
try {
|
||||||
|
Class.forName("com.duke.MyLocaleServiceProvider");
|
||||||
|
logger.debug("OK");
|
||||||
|
} catch (ClassNotFoundException e) {
|
||||||
|
logger.error("Not found", e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue