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

📄 testdatabaseoperation.java

📁 网上论坛系统,是一个功能很完善的系统,推存给大家,很好用的
💻 JAVA
字号:
package test;

import junit.framework.*;
import myjdbc.*;

public class TestDatabaseOperation extends TestCase {
    private DatabaseOperation databaseOperation = null;

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

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

    public void testGetTotalPage() {
        String sql = "select * from topic";
        Object[] paras = null;
        int pageSize = 5;
        int expectedReturn = 3;
        int actualReturn = databaseOperation.getTotalPage(sql, paras, pageSize);
        assertEquals("return value", expectedReturn, actualReturn);
        /**@todo fill in the test code*/
    }

}

⌨️ 快捷键说明

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