]> git.argeo.org Git - gpl/argeo-slc.git/commitdiff
New runtime working end to end
authorMathieu Baudier <mbaudier@argeo.org>
Thu, 12 Jun 2008 18:42:17 +0000 (18:42 +0000)
committerMathieu Baudier <mbaudier@argeo.org>
Thu, 12 Jun 2008 18:42:17 +0000 (18:42 +0000)
git-svn-id: https://svn.argeo.org/slc/trunk@1249 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

org.argeo.slc.core/src/main/java/org/argeo/slc/core/test/SimpleTestRun.java
org.argeo.slc.core/src/main/java/org/argeo/slc/runtime/SimpleSlcRuntime.java [new file with mode: 0644]

index e2ab043cfc7a209c189b4e2e432ce4cd0d1e3c9d..bbe5b215cc332d5bfec88249552a4a56002738ac 100644 (file)
@@ -86,10 +86,12 @@ public class SimpleTestRun implements WritableTestRun, ExecutableTestRun {
        }\r
 \r
        public void notifySlcExecution(SlcExecution slcExecution) {\r
-               slcExecutionUuid = slcExecution.getUuid();\r
-               SlcExecutionStep step = slcExecution.currentStep();\r
-               if (step != null) {\r
-                       slcExecutionStepUuid = step.getUuid();\r
+               if (slcExecution != null) {\r
+                       slcExecutionUuid = slcExecution.getUuid();\r
+                       SlcExecutionStep step = slcExecution.currentStep();\r
+                       if (step != null) {\r
+                               slcExecutionStepUuid = step.getUuid();\r
+                       }\r
                }\r
        }\r
 \r
diff --git a/org.argeo.slc.core/src/main/java/org/argeo/slc/runtime/SimpleSlcRuntime.java b/org.argeo.slc.core/src/main/java/org/argeo/slc/runtime/SimpleSlcRuntime.java
new file mode 100644 (file)
index 0000000..e4a5158
--- /dev/null
@@ -0,0 +1,16 @@
+package org.argeo.slc.runtime;
+
+import org.springframework.context.ApplicationContext;
+
+public class SimpleSlcRuntime implements SlcRuntime {
+       private ApplicationContext runtimeContext;
+
+       public SimpleSlcRuntime(ApplicationContext runtimeContext) {
+               this.runtimeContext = runtimeContext;
+       }
+
+       public ApplicationContext getRuntimeContext() {
+               return runtimeContext;
+       }
+
+}