01: package test.justin;
02:
03: import org.testng.annotations.Test;
04:
05: /**
06: * @author <a href="mailto:jlee@antwerkz.com">Justin Lee</a> Date: Aug 15, 2004
07: */
08: @Test
09: public abstract class BaseTestCase {
10: protected static final String TEST_PASSWORD = "testPassword";
11:
12: public BaseTestCase() {
13: init();
14: }
15:
16: public BaseTestCase(String name) {
17: this ();
18: }
19:
20: private void init() {
21: setSessionUser(null);
22: }
23:
24: protected void commit() {
25: }
26:
27: protected void tearDown() throws Exception {
28: commit();
29: }
30:
31: protected Object createCustomer() throws Exception {
32: return null;
33: }
34:
35: protected Object createProject() throws Exception {
36: return null;
37: }
38:
39: protected Object createTimeEntry() throws Exception {
40: return null;
41: }
42:
43: protected Object createUser(String name) throws Exception {
44: return null;
45: }
46:
47: protected Object createUserGroup() throws Exception {
48: return null;
49: }
50:
51: protected void setSessionUser(Object user) {
52: }
53: }
|