00b1be56c8a6001c1f5ac0f6a46852af

来自「《v512工作室_Java高端培训系列视频》(Java JSP Servlet 」· 代码 · 共 29 行

TXT
29
字号
package example;

import junit.framework.TestCase;

public class Example3Test extends TestCase {
    Example3 e3=null;

    protected void setUp() throws Exception {
	super.setUp();
	e3 = new Example3();
	
    }

    protected void tearDown() throws Exception {
	super.tearDown();
	e3=null;
    }

    public void testAdd() {
	int result=e3.add(30, 60);
	assertEquals(90,result);
    }

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

}

⌨️ 快捷键说明

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