📄 meetingmanagertest.java
字号:
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package logical;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 Administrator */public class MeetingManagerTest { public MeetingManagerTest() { } @BeforeClass public static void setUpClass() throws Exception { } @AfterClass public static void tearDownClass() throws Exception { } @Before public void setUp() { } @After public void tearDown() { } /** * Test of AddAgenda method, of class MeetingManager. */ @Test public void AddAgenda() { System.out.println("AddAgenda"); String tlabel = ""; Date starttime = null; Date endtime = null; User tcaller = null; User tcallee = null; MeetingManager instance = new MeetingManager(); instance.AddAgenda(tlabel, starttime, endtime, tcaller, tcallee); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); } /** * Test of DeleteAgenda method, of class MeetingManager. */ @Test public void DeleteAgenda() { System.out.println("DeleteAgenda"); String tlabel = ""; MeetingManager instance = new MeetingManager(); instance.DeleteAgenda(tlabel); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); } /** * Test of QueryAgenda method, of class MeetingManager. */ @Test public void QueryAgenda() { System.out.println("QueryAgenda"); String Lable = ""; MeetingManager instance = new MeetingManager(); Meeting expResult = null; Meeting result = instance.QueryAgenda(Lable); 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 CheckMeeting method, of class MeetingManager. */ @Test public void CheckMeeting() { System.out.println("CheckMeeting"); String label = ""; MeetingManager instance = new MeetingManager(); boolean expResult = false; boolean result = instance.CheckMeeting(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 GetUserByName method, of class MeetingManager. */ @Test public void GetUserByName() { System.out.println("GetUserByName"); String tlabel = ""; MeetingManager instance = new MeetingManager(); Meeting expResult = null; Meeting result = instance.GetUserByName(tlabel); 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 MeetingManager. */ @Test public void ToString() { System.out.println("ToString"); MeetingManager instance = new MeetingManager(); String expResult = ""; String result = instance.ToString(); 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 + -