BaseTestCase.java :  » Testing » testng » test » justin » Java Open Source

Java Open Source » Testing » testng 
testng » test » justin » BaseTestCase.java
package test.justin;

import org.testng.annotations.Test;

/**
 * @author <a href="mailto:jlee@antwerkz.com">Justin Lee</a> Date: Aug 15, 2004
 */
@Test
public abstract class BaseTestCase {
    protected static final String TEST_PASSWORD = "testPassword";

    public BaseTestCase() {
        init();
    }

    public BaseTestCase(String name) {
        this();
    }

    private void init() {
        setSessionUser(null);
    }

    protected void commit() {
    }

    protected void tearDown() throws Exception {
        commit();
    }

    protected Object createCustomer() throws Exception {
      return null;
    }

    protected Object createProject() throws Exception {
      return null;
    }

    protected Object createTimeEntry() throws Exception {
        return null;
    }

    protected Object createUser(String name) throws Exception {
      return null;
    }

    protected Object createUserGroup() throws Exception {
      return null;
    }

    protected void setSessionUser(Object user) {
    }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.