1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 package javancss.test;
23
24 import java.io.File;
25
26 import ccl.util.Test;
27
28
29
30
31
32
33
34 public abstract class AbstractTest extends Test
35 {
36 private File testDir = null;
37
38 public void setTestDir( File testDir_ )
39 {
40 testDir = testDir_;
41 }
42
43 public File getTestDir()
44 {
45 return testDir;
46 }
47
48 protected File getTestFile( String filename )
49 {
50 return new File( testDir, filename );
51 }
52
53 protected File getTestFile( int testFileId )
54 {
55 return getTestFile( "Test" + testFileId + ".java" );
56 }
57
58 protected AbstractTest()
59 {
60 super();
61 }
62
63 protected AbstractTest( Test pTest_ )
64 {
65 super( pTest_ );
66 }
67
68 public void main()
69 {
70 main( new File( "." ) );
71 }
72
73 public void main( File baseDir )
74 {
75 setTestDir( new File( baseDir, "test" ) );
76 setVerbose( true );
77 setTiming ( true );
78 run();
79 printResult();
80 }
81 }