📄 testlogindata.java~1~
字号:
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 = "mxb";
String password = "mxb";
int state = 0;
int expectedReturn = 0;
int actualReturn = loginData.checkUser(name, password, state);
assertEquals("return value", expectedReturn, actualReturn);
/**@todo fill in the test code*/
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -