1 package org.scrumalliance.scrumsite;
2
3 import java.io.File;
4
5 import junit.framework.TestCase;
6 import junit.framework.TestSuite;
7
8 /***
9 * Abstract base class for test cases.
10 *
11 * @author <a href="jason@zenplex.com">Jason van Zyl</a>
12 */
13 public abstract class AbstractTestCase
14 extends TestCase
15 {
16 /***
17 * Basedir for all file I/O. Important when running tests from
18 * the reactor.
19 */
20 public String basedir = System.getProperty("basedir");
21
22 /***
23 * Constructor.
24 */
25 public AbstractTestCase(String testName)
26 {
27 super(testName);
28 }
29
30 /***
31 * Get test input file.
32 *
33 * @param path Path to test input file.
34 */
35 public String getTestFile(String path)
36 {
37 return new File(basedir,path).getAbsolutePath();
38 }
39 }
40
This page was automatically generated by Maven