1
2 package inklings.jgatms.command;
3
4 import junit.framework.TestCase;
5
6 import org.apache.commons.chain.Command;
7 import org.apache.commons.chain.Catalog;
8 import org.apache.commons.chain.impl.CatalogBase;
9 import org.apache.commons.chain.Context;
10 import org.apache.commons.chain.impl.ContextBase;
11 import org.apache.commons.chain.config.ConfigParser;
12
13 /***
14 * Base test case for JGATMS commands.
15 */
16 public class BaseTestCase extends TestCase {
17
18 private final String CONFIG_FILE = "/jgatms-config.xml";
19
20 protected Catalog catalog;
21
22 protected String getConfigFileName() {
23 return CONFIG_FILE;
24 }
25
26 protected void setUp() throws Exception {
27 catalog = new CatalogBase();
28 ConfigParser parser = new ConfigParser();
29 parser.parse(catalog, this.getClass().getResource(CONFIG_FILE));
30 }
31
32 }
This page was automatically generated by Maven