?? testusermanager.java
字號:
package test;
import junit.framework.*;
import password.*;
/**
* <p>Title: 項(xiàng)目實(shí)戰(zhàn) Stage2</p>
*
* <p>Description: ACCP 4.0</p>
*
* <p>Copyright: Copyright (c) 2005</p>
*
* <p>Company: jb-aptech.com.cn</p>
*
* @author Dong Ping
* @version 1.0
*/
public class TestUserManager extends TestCase {
private UserManager userManager = null;
protected void setUp() throws Exception {
super.setUp();
userManager = new UserManager();
}
protected void tearDown() throws Exception {
userManager = null;
super.tearDown();
}
public void testUsernameEmailExist() throws SystemException {
String username = "luohao";
String email = "hao.luo@jb-aptech.com.cn";
boolean expectedReturn = true;
boolean actualReturn = userManager.UsernameEmailExist(username, email);
assertEquals("return value", expectedReturn, actualReturn);
/**@todo fill in the test code*/
}
public void testGetPasswordByUsernameAndEmailaddress() throws SystemException {
String username = "luohao";
String email = "hao.luo@jb-aptech.com.cn";
String expectedReturn = "haoluo";
String actualReturn = userManager.getPasswordByUsernameAndEmailaddress(username, email);
assertEquals("return value", expectedReturn, actualReturn);
/**@todo fill in the test code*/
}
public void testLogin() throws SystemException {
String username = "dop";
String password = "dop";
boolean expectedReturn = true;
boolean actualReturn = userManager.login(username, password);
assertEquals("return value", expectedReturn, actualReturn);
/**@todo fill in the test code*/
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -