⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testforumbo.java

📁 每个例子文件夹都附有数据库表、程序源文件和一个war包(或者jar包)。如果是cs结构的
💻 JAVA
字号:
package test;

import junit.framework.*;
import bo.*;
import struts.actionform.ForumForm;

public class TestForumBo extends TestCase {
    private ForumBo forumBo = null;

    protected void setUp() throws Exception {
        super.setUp();
        /**@todo verify the constructors*/
        forumBo = forumBo.getInstance();
    }

    protected void tearDown() throws Exception {
        forumBo = null;
        super.tearDown();
    }

    public void testGetReply() {
        ForumForm form = new ForumForm();
        form.setId("fe79feb992986299459eb664c1b06274");
        forumBo.getReply(form);
        /**@todo fill in the test code*/
    }

    public void testGetTopic() {
        ForumForm form = new ForumForm();
        form.setId("ffa5fc0f9165108357a98284e28dc95e");
        forumBo.getTopic(form);
        /**@todo fill in the test code*/
    }
    public void testGetForumList(){
            ForumForm form = new ForumForm();
            forumBo.getForumList(form);
            System.out.println(form.getPageCount());
    }
    public void testSaveEditReply(){
        ForumForm form = new ForumForm();

    }

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -