Initial revision
[lhc/web/wiklou.git] / testsuite / src / com / piclab / wikitest / Test.template
1
2 /*
3 * Template for adding new tests.
4 */
5
6 package com.piclab.wikitest;
7 import com.meterware.httpunit.*;
8
9 public class FooTest extends WikiTest {
10
11 public String testName() { return "Foo"; }
12
13 protected int initTest() throws Exception {
14 m_suite.logout();
15 return 0;
16 }
17
18 protected int runTest() throws Exception {
19 int c = 0;
20
21 if ( 0 != ( c = part1() ) ) { return fail( c ); }
22 if ( 0 != ( c = part2() ) ) { return fail( c ); }
23 return 0;
24 }
25
26 private int part1() throws Exception {
27 return 0;
28 }
29
30 private int part2() throws Exception {
31 return 0;
32 }
33
34 public static void main( String[] params ) {
35 (new FooTest()).runSingle( params );
36 }
37
38 }