?? testlogindata.java~4~
字號(hào):
package data;
import data.*;
import junit.framework.*;
public class TestLoginData extends TestCase {
private LoginData loginData = null;
public TestLoginData(String name) {
super(name);
}
protected void setUp() throws Exception {
super.setUp();
loginData = new LoginData();
}
protected void tearDown() throws Exception {
loginData = null;
super.tearDown();
}
public void testCheckUser() {
String name = "user";
String password = "password";
int state = 1;
int expectedReturn = 1;
int actualReturn = loginData.checkUser(name, password, state);
assertEquals("return value", expectedReturn, actualReturn);
name="mxb";
password="mxb";
state=0;
expectedReturn=1;
actualReturn = loginData.checkUser(name, password, state);
assertEquals("return value", expectedReturn, actualReturn);
}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -