📄 usermanagertest.java
字号:
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package logical;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 UserManagerTest { public UserManagerTest() { } @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 UserManager. */ @Test public void Register() { System.out.println("Register"); String username = ""; String password = ""; UserManager instance = new UserManager(); instance.Register(username, password); // 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 UserManager. */ @Test public void GetUserByName() { System.out.println("GetUserByName"); String tname = ""; UserManager instance = new UserManager(); User expResult = null; User result = instance.GetUserByName(tname); 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 IsTooShort method, of class UserManager. */ @Test public void IsTooShort() { System.out.println("IsTooShort"); String password = ""; UserManager instance = new UserManager(); boolean expResult = false; boolean result = instance.IsTooShort(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 ChecUser method, of class UserManager. */ @Test public void ChecUser() { System.out.println("ChecUser"); String tname = ""; String tpassword = ""; UserManager instance = new UserManager(); boolean expResult = false; boolean result = instance.ChecUser(tname, tpassword); 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 UserManager. */ @Test public void ToString() { System.out.println("ToString"); UserManager instance = new UserManager(); 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 + -