testsubsection.java~6~
来自「数据库应用程序.它比较全面的含盖了JAVA应用程序与数据库之间通讯的全过程.本程」· JAVA~6~ 代码 · 共 33 行
JAVA~6~
33 行
package chapter25;
import junit.framework.*;
public class TestSubsection extends TestCase {
private Subsection subsection = null;
protected void setUp() throws Exception {
super.setUp();
subsection = new Subsection();
}
protected void tearDown() throws Exception {
subsection = null;
super.tearDown();
}
public void testGetValue() {
int d = 0;
int expectedReturn = 0;
int actualReturn = subsection.getValue(d);
assertEquals("return value", expectedReturn, actualReturn);
/**@todo fill in the test code*/
}
public void testSign() {
double d = 0.0;
int expectedReturn = 0;
int actualReturn = subsection.sign(d);
assertEquals("return value", expectedReturn, actualReturn);
/**@todo fill in the test code*/
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?