protected void setUp() throws Exception {
    mConfig = new Configuration();
    mConfig.setTestMode(true);
    mConfig.save();

    // 刪除資料庫
    InitialSQL ini = new InitialSQL(mConfig);
    ini.exe();

    // create project
    mCP = new CreateProject(1);
    mCP.exeCreate();

    // create sprint
    mCS = new CreateSprint(2, mCP);
    mCS.exe();

    mProject = mCP.getAllProjects().get(0);
    super.setUp();

    // ================ set action info ========================
    setContextDirectory(new File(mConfig.getBaseDirPath() + "/WebContent"));
    setServletConfigFile("/WEB-INF/struts-config.xml");
    setRequestPathInfo(mActionPath);

    ini = null;
  }
  protected void setUp() throws Exception {
    //	刪除資料庫
    InitialSQL ini = new InitialSQL(config);
    ini.exe();

    this.CP = new CreateProject(1);
    this.CP.exeCreate(); // 新增一測試專案

    super.setUp();

    ini = null;
  }
  @Before
  public void setUp() {
    mConfig = new Configuration();
    mConfig.setTestMode(true);
    mConfig.save();

    InitialSQL ini = new InitialSQL(mConfig);
    ini.exe();

    mCP = new CreateProject(1);
    mCP.exeCreate();

    mData = new StoryDataForFilter();
  }
  protected void tearDown() throws IOException, Exception {
    //	刪除資料庫
    InitialSQL ini = new InitialSQL(config);
    ini.exe();

    //	刪除外部檔案
    ProjectManager projectManager = new ProjectManager();
    projectManager.deleteAllProject();
    projectManager.initialRoleBase(this.config.getTestDataPath());

    super.tearDown();

    ini = null;
    projectManager = null;
  }
  @After
  public void tearDown() {
    InitialSQL ini = new InitialSQL(mConfig);
    ini.exe();
    // 刪除外部檔案
    ProjectManager projectManager = new ProjectManager();
    projectManager.deleteAllProject();

    // 讓 config 回到  Production 模式
    mConfig.setTestMode(false);
    mConfig.save();

    mCP = null;
    mData = null;
  }
  @After
  public void tearDown() {
    // 初始化 SQL
    InitialSQL ini = new InitialSQL(mConfig);
    ini.exe();

    // 刪除外部檔案
    ProjectManager projectManager = new ProjectManager();
    projectManager.deleteAllProject();

    mConfig.setTestMode(false);
    mConfig.save();

    // release
    ini = null;
    mCP = null;
    mProject = null;
    mConfig = null;
    mControl = null;
  }
  @Before
  public void setUp() {
    mConfig = new Configuration();
    mConfig.setTestMode(true);
    mConfig.save();

    InitialSQL ini = new InitialSQL(mConfig);
    ini.exe();

    mCP = new CreateProject(mProjectCount);
    mCP.exeCreate();

    mControl = new MySQLControl(mConfig);
    mControl.connect();

    mProject = mCP.getAllProjects().get(0);

    // create a retrospective
    mRtrospectiveId = createRetrospective();
  }
  protected void tearDown() throws IOException, Exception {
    //	刪除資料庫
    InitialSQL ini = new InitialSQL(mConfig);
    ini.exe();

    //	刪除外部檔案
    ProjectManager projectManager = new ProjectManager();
    projectManager.deleteAllProject();

    // 讓 config 回到  Production 模式
    mConfig.setTestMode(false);
    mConfig.save();

    // ============= release ==============
    ini = null;
    mCP = null;
    mConfig = null;

    super.tearDown();
  }
  protected void tearDown() throws Exception {
    // 刪除資料庫
    InitialSQL ini = new InitialSQL(mConfig);
    ini.exe();

    // 刪除外部檔案
    ProjectManager projectManager = new ProjectManager();
    projectManager.deleteAllProject();

    mConfig.setTestMode(false);
    mConfig.save();

    super.tearDown();

    ini = null;
    projectManager = null;
    mCP = null;
    mCS = null;
    mConfig = null;
    mProject = null;
  }
  protected void setUp() throws Exception {
    mConfig = new Configuration();
    mConfig.setTestMode(true);
    mConfig.save();

    InitialSQL ini = new InitialSQL(mConfig);
    ini.exe(); // 初始化 SQL

    mCP = new CreateProject(1);
    mCP.exeCreate(); // 新增一測試專案

    super.setUp();

    setContextDirectory(new File(mConfig.getBaseDirPath() + "/WebContent")); // 設定讀取的
    // struts-config
    // 檔案路徑
    setServletConfigFile("/WEB-INF/struts-config.xml");
    setRequestPathInfo("/showRetrospective2");

    // ============= release ==============
    ini = null;
  }
  protected void setUp() throws Exception {
    mConfig = new Configuration();
    mConfig.setTestMode(true);
    mConfig.save();

    // 初始化 SQL
    InitialSQL ini = new InitialSQL(mConfig);
    ini.exe();

    //	新增一測試專案
    mCP = new CreateProject(1);
    mCP.exeCreate();
    mProject = mCP.getAllProjects().get(0);

    super.setUp();

    setContextDirectory(
        new File(mConfig.getBaseDirPath() + "/WebContent")); // 設定讀取的 struts-config 檔案路徑
    setServletConfigFile("/WEB-INF/struts-config.xml");
    setRequestPathInfo(mACTION_PATH);

    // ============= release ==============
    ini = null;
  }