<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src/main/resources"/>
+ <classpathentry kind="src" path="src/test/java"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
<classpathentry kind="output" path="target/classes"/>
<groupId>org.argeo.slc.runtime</groupId>
<artifactId>org.argeo.slc.support.simple</artifactId>
</dependency>
+
+ <dependency>
+ <groupId>org.argeo.slc.demo</groupId>
+ <artifactId>org.argeo.slc.demo.log4j</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+
</dependencies>
</project>
--- /dev/null
+package org.argeo.slc.demo.basic;
+
+import junit.framework.TestCase;
+
+import org.argeo.slc.core.execution.ExecutionContext;
+import org.argeo.slc.core.execution.NewExecutionEvent;
+import org.argeo.slc.execution.ExecutionFlow;
+import org.argeo.slc.process.SlcExecution;
+import org.springframework.context.support.ClassPathXmlApplicationContext;
+
+public class BasicExecutionTest extends TestCase {
+ public void testExecution() throws Exception {
+ String[] files = { "conf/main.xml", "conf/imports.xml",
+ "conf/common.xml", "conf/basic.xml",
+ "conf/testCases/basic-001.xml", "conf/testCases/basic-002.xml" };
+ ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext(
+ files);
+ applicationContext.start();
+
+ String bean = "main";
+ ExecutionContext.registerExecutionContext(new ExecutionContext());
+ ExecutionContext.getVariables().put("slc.flows", bean);
+ ExecutionFlow executionFlow = (ExecutionFlow) applicationContext
+ .getBean(bean);
+ executionFlow.execute();
+
+// SlcExecution slcExecution = new SlcExecution();
+// slcExecution.getAttributes().put("slc.flows", "main");
+// applicationContext.publishEvent(new NewExecutionEvent(this,
+// slcExecution));
+//
+// Thread.sleep(5000);
+
+ applicationContext.close();
+ }
+}