50cb3c53caa6001c1f5ac0f6a46852af
来自「《v512工作室_Java高端培训系列视频》(Java JSP Servlet 」· 代码 · 共 31 行
TXT
31 行
package example;
import junit.framework.TestCase;
public class Example2Test extends TestCase {
Example2 e2=null;
public Example2Test(String name) {
super(name);
}
protected void setUp() throws Exception {
super.setUp();
e2=new Example2();
}
protected void tearDown() throws Exception {
super.tearDown();
e2=null;
}
public void testGetName() {
assertEquals("liuwei", e2.getName());
}
public void testGetAge() {
assertEquals(30,e2.getAge());
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?