From ee0c66dcee639f39c0234c20549557c17e45713a Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Thu, 25 May 2017 11:53:09 +0000 Subject: [PATCH] Added test git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/private/luca.frosini/infrastructure-tests@149070 82a268e6-3cf1-43bd-a215-b396298e98cf --- .settings/org.eclipse.jdt.core.prefs | 3 +++ ...ISExporterPluginSmartExecutorSchedulerTest.java | 14 ++++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs index 4ede96d..714351a 100644 --- a/.settings/org.eclipse.jdt.core.prefs +++ b/.settings/org.eclipse.jdt.core.prefs @@ -1,2 +1,5 @@ eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 +org.eclipse.jdt.core.compiler.compliance=1.8 org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.source=1.8 diff --git a/src/test/java/org/gcube/informationsystem/exporter/ISExporterPluginSmartExecutorSchedulerTest.java b/src/test/java/org/gcube/informationsystem/exporter/ISExporterPluginSmartExecutorSchedulerTest.java index 8f41929..8b4af55 100644 --- a/src/test/java/org/gcube/informationsystem/exporter/ISExporterPluginSmartExecutorSchedulerTest.java +++ b/src/test/java/org/gcube/informationsystem/exporter/ISExporterPluginSmartExecutorSchedulerTest.java @@ -12,6 +12,7 @@ import org.gcube.vremanagement.executor.api.types.LaunchParameter; import org.gcube.vremanagement.executor.api.types.Scheduling; import org.gcube.vremanagement.executor.client.plugins.ExecutorPlugin; import org.gcube.vremanagement.executor.client.proxies.SmartExecutorProxy; +import org.gcube.vremanagement.executor.plugin.PluginStateEvolution; import org.junit.Assert; import org.junit.Test; import org.quartz.CronExpression; @@ -75,11 +76,20 @@ public class ISExporterPluginSmartExecutorSchedulerTest extends ScopedTest { } - //@Test + @Test + public void getState() throws Exception { + SmartExecutorProxy proxy = ExecutorPlugin.getExecutorProxy(ISExporterPluginDeclaration.NAME).build(); + Assert.assertNotNull(proxy); + + PluginStateEvolution pluginStateEvolution = proxy.getStateEvolution(""); + logger.debug("{}", pluginStateEvolution); + } + + @Test public void unSchedule() throws Exception { SmartExecutorProxy proxy = ExecutorPlugin.getExecutorProxy(ISExporterPluginDeclaration.NAME).build(); Assert.assertNotNull(proxy); - proxy.unSchedule(null, true); + //proxy.unSchedule(null, true); } }