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:
Luca Frosini 2016-04-13 15:07:56 +00:00
parent 3cf5d338ec
commit 5b68f1709f
2 changed files with 30 additions and 0 deletions

View File

@ -15,6 +15,7 @@ import org.gcube.vremanagement.executor.client.plugins.ExecutorPlugin;
import org.gcube.vremanagement.executor.client.proxies.SmartExecutorProxy;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.quartz.CronExpression;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@ -39,6 +40,8 @@ public class ISSweeperPluginSmartExecutorSchedulerTest extends ScopedTest {
public UUID scheduleTest(Scheduling scheduling, Long sleepTime) throws Exception {
Map<String, Object> inputs = new HashMap<String, Object>();
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);
parameter.setScheduling(scheduling);

View File

@ -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);
}
}
}