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

📄 agendaservicetest.java

📁 Java编写个人日程管理工具, 具有添加编辑日程和自动适应功能, 程序包含完整的Document和测试运行环境
💻 JAVA
字号:
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package logical;import java.util.ArrayList;import java.util.Date;import org.junit.After;import org.junit.AfterClass;import org.junit.Before;import org.junit.BeforeClass;import org.junit.Test;import static org.junit.Assert.*;/** * * @author zouhao */public class AgendaServiceTest {    public AgendaServiceTest() {    }    @BeforeClass    public static void setUpClass() throws Exception {    }    @AfterClass    public static void tearDownClass() throws Exception {    }    @Before    public void setUp() {    }    @After    public void tearDown() {    }    /**     * Test of Register method, of class AgendaService.     */    @Test    public void Register() {        System.out.println("Register");        String username = "test";        String password = "testtest";        AgendaService instance = new AgendaService();        boolean expResult = true;        boolean result = instance.Register(username, password);        assertEquals(expResult, result);        // TODO review the generated test code and remove the default call to fail.        fail("The test case is a prototype.");    }    /**     * Test of Add method, of class AgendaService.     */    @Test    public void Add() {        System.out.println("Add");        String username = "test";        String password = "testtest";        String label = "m";        String callee = "te";        Date starttime = null;        Date endtime = null;        AgendaService instance = new AgendaService();        boolean expResult = false;        boolean result = instance.Add(username, password, label, callee, starttime, endtime);        assertEquals(expResult, result);        // TODO review the generated test code and remove the default call to fail.        fail("The test case is a prototype.");    }        /**     * Test of Delete method, of class AgendaService.     */    @Test    public void Delete() {        System.out.println("Delete");        String username = "test";        String password = "testtest";        String label = "m";        AgendaService instance = new AgendaService();        boolean expResult = false;        boolean result = instance.Delete(username, password, label);        assertEquals(expResult, result);        // TODO review the generated test code and remove the default call to fail.        fail("The test case is a prototype.");    }    /**     * Test of Clear method, of class AgendaService.     */    @Test    public void Clear() {        System.out.println("Clear");        String username = "test";        String password = "testtest";        AgendaService instance = new AgendaService();        boolean expResult = false;        boolean result = instance.Clear(username, password);        assertEquals(expResult, result);        // TODO review the generated test code and remove the default call to fail.        fail("The test case is a prototype.");    }    /**     * Test of Query method, of class AgendaService.     */    @Test    public void Query() {        System.out.println("Query");        String username = "test";        String password = "testtest";        Date starttime = null;        Date endtime = null;        AgendaService instance = new AgendaService();        ArrayList expResult = null;        ArrayList result = instance.Query(username, password, starttime, endtime);        assertEquals(expResult, result);        // TODO review the generated test code and remove the default call to fail.        fail("The test case is a prototype.");    }    /**     * Test of ToString method, of class AgendaService.     */    @Test    public void ToString() {        System.out.println("ToString");        String type = "test";        AgendaService instance = new AgendaService();        String expResult = "test";        String result = instance.ToString(type);        assertEquals(expResult, result);        // TODO review the generated test code and remove the default call to fail.        fail("The test case is a prototype.");    }}

⌨️ 快捷键说明

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