From fd419cbd85435070ee575b4cf71f74be011d4282 Mon Sep 17 00:00:00 2001 From: Mathieu Baudier Date: Tue, 17 Feb 2009 20:32:04 +0000 Subject: [PATCH] Start experiencing with new approaches for test writing git-svn-id: https://svn.argeo.org/slc/trunk@2151 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc --- sandbox/argeo.slc.executionflow/.classpath | 7 ++ sandbox/argeo.slc.executionflow/.project | 29 +++++ sandbox/argeo.slc.executionflow/.springBeans | 15 +++ sandbox/argeo.slc.executionflow/pom.xml | 46 ++++++++ .../ConsoleContextDescriber.java | 39 +++++++ .../slc/executionflow/ContextDescriber.java | 9 ++ .../argeo/slc/executionflow/EfLauncher.java | 82 ++++++++++++++ .../slc/executionflow/ExecutionFlow.java | 10 ++ .../executionflow/ExecutionFlowFactory.java | 25 +++++ .../slc/executionflow/ExecutionScope.java | 34 ++++++ .../slc/executionflow/ExecutionSpec.java | 7 ++ .../executionflow/ExecutionSpecAttribute.java | 5 + .../executionflow/ExecutionTargetSource.java | 46 ++++++++ .../slc/executionflow/RefSpecAttribute.java | 23 ++++ .../executionflow/SimpleExecutionFlow.java | 63 +++++++++++ .../executionflow/SimpleExecutionSpec.java | 33 ++++++ .../executionflow/SimpleSpecAttribute.java | 13 +++ .../src/slc/conf/BasicExecutionFlow.groovy | 12 ++ .../src/slc/conf/basic.xml | 87 +++++++++++++++ .../src/slc/conf/common.xml | 17 +++ .../src/slc/conf/main.xml | 21 ++++ .../src/slc/conf/slc.properties | 14 +++ .../src/slc/conf/test.xml | 105 ++++++++++++++++++ .../src/slc/conf/testCases/basic-001.xml | 27 +++++ .../src/slc/conf/testCases/basic-002.xml | 27 +++++ 25 files changed, 796 insertions(+) create mode 100644 sandbox/argeo.slc.executionflow/.classpath create mode 100644 sandbox/argeo.slc.executionflow/.project create mode 100644 sandbox/argeo.slc.executionflow/.springBeans create mode 100644 sandbox/argeo.slc.executionflow/pom.xml create mode 100644 sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/ConsoleContextDescriber.java create mode 100644 sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/ContextDescriber.java create mode 100644 sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/EfLauncher.java create mode 100644 sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/ExecutionFlow.java create mode 100644 sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/ExecutionFlowFactory.java create mode 100644 sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/ExecutionScope.java create mode 100644 sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/ExecutionSpec.java create mode 100644 sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/ExecutionSpecAttribute.java create mode 100644 sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/ExecutionTargetSource.java create mode 100644 sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/RefSpecAttribute.java create mode 100644 sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/SimpleExecutionFlow.java create mode 100644 sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/SimpleExecutionSpec.java create mode 100644 sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/SimpleSpecAttribute.java create mode 100644 sandbox/argeo.slc.executionflow/src/slc/conf/BasicExecutionFlow.groovy create mode 100644 sandbox/argeo.slc.executionflow/src/slc/conf/basic.xml create mode 100644 sandbox/argeo.slc.executionflow/src/slc/conf/common.xml create mode 100644 sandbox/argeo.slc.executionflow/src/slc/conf/main.xml create mode 100644 sandbox/argeo.slc.executionflow/src/slc/conf/slc.properties create mode 100644 sandbox/argeo.slc.executionflow/src/slc/conf/test.xml create mode 100644 sandbox/argeo.slc.executionflow/src/slc/conf/testCases/basic-001.xml create mode 100644 sandbox/argeo.slc.executionflow/src/slc/conf/testCases/basic-002.xml diff --git a/sandbox/argeo.slc.executionflow/.classpath b/sandbox/argeo.slc.executionflow/.classpath new file mode 100644 index 000000000..16f01e2ee --- /dev/null +++ b/sandbox/argeo.slc.executionflow/.classpath @@ -0,0 +1,7 @@ + + + + + + + diff --git a/sandbox/argeo.slc.executionflow/.project b/sandbox/argeo.slc.executionflow/.project new file mode 100644 index 000000000..63e0d7408 --- /dev/null +++ b/sandbox/argeo.slc.executionflow/.project @@ -0,0 +1,29 @@ + + + argeo.slc.executionflow + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.maven.ide.eclipse.maven2Builder + + + + + org.springframework.ide.eclipse.core.springbuilder + + + + + + org.springframework.ide.eclipse.core.springnature + org.maven.ide.eclipse.maven2Nature + org.eclipse.jdt.core.javanature + + diff --git a/sandbox/argeo.slc.executionflow/.springBeans b/sandbox/argeo.slc.executionflow/.springBeans new file mode 100644 index 000000000..bbe3b1ee7 --- /dev/null +++ b/sandbox/argeo.slc.executionflow/.springBeans @@ -0,0 +1,15 @@ + + + 1 + + + + + + + src/slc/conf/testCases/basic-001.xml + src/slc/conf/basic.xml + + + + diff --git a/sandbox/argeo.slc.executionflow/pom.xml b/sandbox/argeo.slc.executionflow/pom.xml new file mode 100644 index 000000000..6a9248839 --- /dev/null +++ b/sandbox/argeo.slc.executionflow/pom.xml @@ -0,0 +1,46 @@ + + 4.0.0 + + org.argeo.slc + argeo-slc + 0.11.3-SNAPSHOT + ../../org.argeo.slc + + org.argeo.slc.sandbox + org.argeo.slc.sandbox.executionflow + SLC Sandbox Execution Flow + jar + + + + + maven-jar-plugin + + + + + + + + org.argeo.slc.runtime + org.argeo.slc.support.simple + + + + org.codehaus.groovy + com.springsource.org.codehaus.groovy + 1.5.7 + + + org.beanshell + com.springsource.bsh + 2.0.0.b4 + + + net.sourceforge.cglib + com.springsource.net.sf.cglib + 2.1.3 + + + \ No newline at end of file diff --git a/sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/ConsoleContextDescriber.java b/sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/ConsoleContextDescriber.java new file mode 100644 index 000000000..3da461fba --- /dev/null +++ b/sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/ConsoleContextDescriber.java @@ -0,0 +1,39 @@ +package org.argeo.slc.executionflow; + +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; +import org.springframework.beans.MutablePropertyValues; +import org.springframework.beans.PropertyValue; +import org.springframework.beans.factory.config.BeanDefinition; +import org.springframework.beans.factory.support.BeanDefinitionRegistry; + +public class ConsoleContextDescriber implements ContextDescriber { + private final static Log log = LogFactory + .getLog(ConsoleContextDescriber.class); + + public void describeContext(BeanDefinitionRegistry registry) { + String[] beanNames = registry.getBeanDefinitionNames(); + for (String beanName : beanNames) { + log("\n## BEAN: " + beanName); + describeBean(registry.getBeanDefinition(beanName)); + } + } + + public void describeBean(BeanDefinition beanDefinition) { + log("BeanDefinition class: "+beanDefinition.getClass()); + log("# ATTRIBUTES"); + for(String attr:beanDefinition.attributeNames()){ + log(attr+"="+beanDefinition.getAttribute(attr)); + } + log("# PROPERTIES"); + MutablePropertyValues pValues = beanDefinition.getPropertyValues(); + for (PropertyValue pv : pValues.getPropertyValues()) { + log(pv.getName() + "= (" + pv.getValue().getClass() + ") " + + pv.getValue()); + } + } + + protected void log(Object obj){ + System.out.println(obj); + } +} diff --git a/sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/ContextDescriber.java b/sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/ContextDescriber.java new file mode 100644 index 000000000..4345c345d --- /dev/null +++ b/sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/ContextDescriber.java @@ -0,0 +1,9 @@ +package org.argeo.slc.executionflow; + +import org.springframework.beans.factory.config.BeanDefinition; +import org.springframework.beans.factory.support.BeanDefinitionRegistry; + +public interface ContextDescriber { + public void describeContext(BeanDefinitionRegistry registry); + public void describeBean(BeanDefinition bd); +} diff --git a/sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/EfLauncher.java b/sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/EfLauncher.java new file mode 100644 index 000000000..98c191a3d --- /dev/null +++ b/sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/EfLauncher.java @@ -0,0 +1,82 @@ +package org.argeo.slc.executionflow; + +import java.io.FileInputStream; +import java.io.FileNotFoundException; +import java.io.IOException; +import java.util.List; +import java.util.Map; +import java.util.Properties; + +import org.apache.commons.io.IOUtils; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; +import org.argeo.slc.logging.Log4jUtils; +import org.springframework.beans.MutablePropertyValues; +import org.springframework.beans.PropertyValue; +import org.springframework.beans.factory.config.BeanDefinition; +import org.springframework.beans.factory.support.BeanDefinitionRegistry; +import org.springframework.beans.factory.support.SimpleBeanDefinitionRegistry; +import org.springframework.beans.factory.xml.XmlBeanDefinitionParser; +import org.springframework.beans.factory.xml.XmlBeanDefinitionReader; +import org.springframework.context.support.FileSystemXmlApplicationContext; + +public class EfLauncher { + private static Log log; + + public static void main(String[] args) { + init(); + + String script = "src/slc/conf/main.xml"; + //describe(script); + + FileSystemXmlApplicationContext context = new FileSystemXmlApplicationContext( + script); + // context.start(); + + ExecutionFlow main = (ExecutionFlow)context.getBean("main"); + main.execute(); + /* + Map eFlows = context + .getBeansOfType(ExecutionFlow.class); + for (String name : eFlows.keySet()) { + log.info("##\n## Execute ExecutionFlow " + name); + ExecutionFlow eFlow = eFlows.get(name); + eFlow.execute(); + + }*/ + } + + private static void describe(String script){ + SimpleBeanDefinitionRegistry registry = new SimpleBeanDefinitionRegistry(); + XmlBeanDefinitionReader reader = new XmlBeanDefinitionReader(registry); + reader.loadBeanDefinitions("file:" + script); + new ConsoleContextDescriber().describeContext(registry); + } + + private static void init() { + Properties userProperties = new Properties(); + FileInputStream in = null; + try { + in = new FileInputStream("src/slc/conf/slc.properties"); + userProperties.load(in); + } catch (Exception e) { + e.printStackTrace(); + } finally { + IOUtils.closeQuietly(in); + } + + // Set as System properties + for (Object obj : userProperties.keySet()) { + String key = obj.toString(); + System.setProperty(key, userProperties.getProperty(key)); + } + + // Logging + System.setProperty("log4j.defaultInitOverride", "true"); + + Log4jUtils.initLog4j(null); + log = LogFactory.getLog(EfLauncher.class); + + } + +} diff --git a/sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/ExecutionFlow.java b/sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/ExecutionFlow.java new file mode 100644 index 000000000..652218471 --- /dev/null +++ b/sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/ExecutionFlow.java @@ -0,0 +1,10 @@ +package org.argeo.slc.executionflow; + +import java.util.Map; + +import org.argeo.slc.process.Executable; + +public interface ExecutionFlow extends Executable{ + public Map getAttributes(); + public String getUuid(); +} diff --git a/sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/ExecutionFlowFactory.java b/sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/ExecutionFlowFactory.java new file mode 100644 index 000000000..41d000b97 --- /dev/null +++ b/sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/ExecutionFlowFactory.java @@ -0,0 +1,25 @@ +package org.argeo.slc.executionflow; + +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +import org.argeo.slc.process.Executable; + +public class ExecutionFlowFactory { + private List executables = new ArrayList(); + + + public ExecutionFlow createExecutionFlow(Map attributes){ + SimpleExecutionFlow executionFlow = new SimpleExecutionFlow(); + executionFlow.setExecutables(executables); + return executionFlow; + } + + + public void setExecutables(List executables) { + this.executables = executables; + } + + +} diff --git a/sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/ExecutionScope.java b/sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/ExecutionScope.java new file mode 100644 index 000000000..46d5d19f7 --- /dev/null +++ b/sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/ExecutionScope.java @@ -0,0 +1,34 @@ +package org.argeo.slc.executionflow; + +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; +import org.springframework.beans.factory.ObjectFactory; +import org.springframework.beans.factory.config.Scope; + +public class ExecutionScope implements Scope { + private final static Log log = LogFactory.getLog(ExecutionScope.class); + + public Object get(String name, ObjectFactory objectFactory) { + log.info("Getting bean "+name); + ExecutionFlow executionFlow = SimpleExecutionFlow.getCurrentExecutionFlow(); + Object obj = executionFlow.getAttributes().get(name); + log.info("Scoped object "+obj); + return obj; + } + + public String getConversationId() { + ExecutionFlow executionFlow = SimpleExecutionFlow.getCurrentExecutionFlow(); + return executionFlow.getUuid(); + } + + public void registerDestructionCallback(String name, Runnable callback) { + // TODO Auto-generated method stub + + } + + public Object remove(String name) { + // TODO Auto-generated method stub + return null; + } + +} diff --git a/sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/ExecutionSpec.java b/sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/ExecutionSpec.java new file mode 100644 index 000000000..bc37a5ae8 --- /dev/null +++ b/sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/ExecutionSpec.java @@ -0,0 +1,7 @@ +package org.argeo.slc.executionflow; + +import java.util.Map; + +public interface ExecutionSpec { + public Map getAttributes(); +} diff --git a/sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/ExecutionSpecAttribute.java b/sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/ExecutionSpecAttribute.java new file mode 100644 index 000000000..de81c1ac8 --- /dev/null +++ b/sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/ExecutionSpecAttribute.java @@ -0,0 +1,5 @@ +package org.argeo.slc.executionflow; + +public interface ExecutionSpecAttribute { + public T getValue(); +} diff --git a/sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/ExecutionTargetSource.java b/sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/ExecutionTargetSource.java new file mode 100644 index 000000000..51bdf250f --- /dev/null +++ b/sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/ExecutionTargetSource.java @@ -0,0 +1,46 @@ +package org.argeo.slc.executionflow; + +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; +import org.springframework.aop.TargetSource; + +public class ExecutionTargetSource implements TargetSource { + private final static Log log = LogFactory + .getLog(ExecutionTargetSource.class); + + private String name; + private Class targetClass; + + public Object getTarget() throws Exception { + if (log.isTraceEnabled()) + log.trace("Getting object " + name); + ExecutionFlow executionFlow = SimpleExecutionFlow + .getCurrentExecutionFlow(); + Object obj = executionFlow.getAttributes().get(name); + if (log.isTraceEnabled()) + log.trace("Target object " + obj); + return obj; + } + + public Class getTargetClass() { + return targetClass; + } + + public boolean isStatic() { + return false; + } + + public void releaseTarget(Object target) throws Exception { + // TODO Auto-generated method stub + + } + + public void setName(String name) { + this.name = name; + } + + public void setTargetClass(Class targetClass) { + this.targetClass = targetClass; + } + +} diff --git a/sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/RefSpecAttribute.java b/sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/RefSpecAttribute.java new file mode 100644 index 000000000..bb22403b4 --- /dev/null +++ b/sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/RefSpecAttribute.java @@ -0,0 +1,23 @@ +package org.argeo.slc.executionflow; + +public class RefSpecAttribute implements ExecutionSpecAttribute { + private Class targetClass; + private T value = null; + + public T getValue() { + return value; + } + + public void setValue(T value) { + this.value = value; + } + + public Class getTargetClass() { + return targetClass; + } + + public void setTargetClass(Class targetClass) { + this.targetClass = targetClass; + } + +} diff --git a/sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/SimpleExecutionFlow.java b/sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/SimpleExecutionFlow.java new file mode 100644 index 000000000..d81641912 --- /dev/null +++ b/sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/SimpleExecutionFlow.java @@ -0,0 +1,63 @@ +package org.argeo.slc.executionflow; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.UUID; + +import org.apache.commons.lang.math.RandomUtils; +import org.argeo.slc.process.Executable; +import org.argeo.slc.test.ExecutableTestRun; +import org.springframework.beans.factory.InitializingBean; + +public class SimpleExecutionFlow implements ExecutionFlow, InitializingBean { + private static ThreadLocal executionFlow = new ThreadLocal(); + + private ExecutionSpec executionSpec; + private Map attributes = new HashMap(); + private List executables = new ArrayList(); + + private final String uuid = UUID.randomUUID().toString(); + + public void execute() { + try { + executionFlow.set(this); + for (Executable executable : executables) { + executable.execute(); + } + } finally { + executionFlow.set(null); + } + } + + public void afterPropertiesSet() throws Exception { + // TODO Auto-generated method stub + + } + + public void setExecutables(List executables) { + this.executables = executables; + } + + public void setExecutionSpec(ExecutionSpec executionSpec) { + this.executionSpec = executionSpec; + } + + public void setAttributes(Map attributes) { + this.attributes = attributes; + } + + public static ExecutionFlow getCurrentExecutionFlow() { + return executionFlow.get(); + } + + public Map getAttributes() { + return attributes; + } + + public String getUuid() { + return uuid; + } + +} diff --git a/sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/SimpleExecutionSpec.java b/sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/SimpleExecutionSpec.java new file mode 100644 index 000000000..f8eb969b8 --- /dev/null +++ b/sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/SimpleExecutionSpec.java @@ -0,0 +1,33 @@ +package org.argeo.slc.executionflow; + +import java.util.HashMap; +import java.util.Map; + +import org.springframework.aop.framework.ProxyFactory; + +public class SimpleExecutionSpec implements ExecutionSpec { + private Map attributes = new HashMap(); + + public Map getAttributes() { + return attributes; + } + + public void setAttributes(Map attributes) { + this.attributes = attributes; + } + + public Object createRef(String name) { + RefSpecAttribute refSpecAttribute = (RefSpecAttribute) attributes + .get(name); + Class targetClass = refSpecAttribute.getTargetClass(); + ExecutionTargetSource targetSource = new ExecutionTargetSource(); + targetSource.setName(name); + targetSource.setTargetClass(targetClass); + ProxyFactory proxyFactory = new ProxyFactory(); + proxyFactory.setTargetClass(targetClass); + proxyFactory.setProxyTargetClass(true); + proxyFactory.setTargetSource(targetSource); + + return proxyFactory.getProxy(); + } +} diff --git a/sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/SimpleSpecAttribute.java b/sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/SimpleSpecAttribute.java new file mode 100644 index 000000000..9839b525f --- /dev/null +++ b/sandbox/argeo.slc.executionflow/src/main/java/org/argeo/slc/executionflow/SimpleSpecAttribute.java @@ -0,0 +1,13 @@ +package org.argeo.slc.executionflow; + +public class SimpleSpecAttribute implements ExecutionSpecAttribute { + private T value = null; + + public T getValue() { + return value; + } + + public void setValue(T value){ + this.value = value; + } +} diff --git a/sandbox/argeo.slc.executionflow/src/slc/conf/BasicExecutionFlow.groovy b/sandbox/argeo.slc.executionflow/src/slc/conf/BasicExecutionFlow.groovy new file mode 100644 index 000000000..da3926ef8 --- /dev/null +++ b/sandbox/argeo.slc.executionflow/src/slc/conf/BasicExecutionFlow.groovy @@ -0,0 +1,12 @@ +import org.argeo.slc.test.*; + +public class BasicExecutionFlow implements org.argeo.slc.executionflow.ExecutionFlow { + + ExecutableTestRun firstSubTest = null; + ExecutableTestRun secondSubTest = null; + + void execute(){ + firstSubTest?.execute(); + secondSubTest?.execute(); + } +} diff --git a/sandbox/argeo.slc.executionflow/src/slc/conf/basic.xml b/sandbox/argeo.slc.executionflow/src/slc/conf/basic.xml new file mode 100644 index 000000000..82e71d15a --- /dev/null +++ b/sandbox/argeo.slc.executionflow/src/slc/conf/basic.xml @@ -0,0 +1,87 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sandbox/argeo.slc.executionflow/src/slc/conf/common.xml b/sandbox/argeo.slc.executionflow/src/slc/conf/common.xml new file mode 100644 index 000000000..80f54b562 --- /dev/null +++ b/sandbox/argeo.slc.executionflow/src/slc/conf/common.xml @@ -0,0 +1,17 @@ + + + + + + + + + + \ No newline at end of file diff --git a/sandbox/argeo.slc.executionflow/src/slc/conf/main.xml b/sandbox/argeo.slc.executionflow/src/slc/conf/main.xml new file mode 100644 index 000000000..4d43965c5 --- /dev/null +++ b/sandbox/argeo.slc.executionflow/src/slc/conf/main.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sandbox/argeo.slc.executionflow/src/slc/conf/slc.properties b/sandbox/argeo.slc.executionflow/src/slc/conf/slc.properties new file mode 100644 index 000000000..7cce428ea --- /dev/null +++ b/sandbox/argeo.slc.executionflow/src/slc/conf/slc.properties @@ -0,0 +1,14 @@ +log4j.rootLogger=WARN, console + +## Levels +log4j.logger.org.argeo=DEBUG + +## Appenders +# console is set to be a ConsoleAppender. +log4j.appender.console=org.apache.log4j.ConsoleAppender + +# console uses PatternLayout. +log4j.appender.console.layout=org.apache.log4j.PatternLayout +log4j.appender.console.layout.ConversionPattern= %-5p %d{ISO8601} %m - %c%n + +testCase=002 \ No newline at end of file diff --git a/sandbox/argeo.slc.executionflow/src/slc/conf/test.xml b/sandbox/argeo.slc.executionflow/src/slc/conf/test.xml new file mode 100644 index 000000000..6cc40e80e --- /dev/null +++ b/sandbox/argeo.slc.executionflow/src/slc/conf/test.xml @@ -0,0 +1,105 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sandbox/argeo.slc.executionflow/src/slc/conf/testCases/basic-001.xml b/sandbox/argeo.slc.executionflow/src/slc/conf/testCases/basic-001.xml new file mode 100644 index 000000000..5f13829ab --- /dev/null +++ b/sandbox/argeo.slc.executionflow/src/slc/conf/testCases/basic-001.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sandbox/argeo.slc.executionflow/src/slc/conf/testCases/basic-002.xml b/sandbox/argeo.slc.executionflow/src/slc/conf/testCases/basic-002.xml new file mode 100644 index 000000000..037f7e19b --- /dev/null +++ b/sandbox/argeo.slc.executionflow/src/slc/conf/testCases/basic-002.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file -- 2.39.2