7071e3bcc6a6001c1f5ac0f6a46852af

来自「《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() {
	this.assertEquals("liuwei", e2.getName());
    }

    public void testGetAge() {
	fail("Not yet implemented");
    }

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?