📄 c06f6c1ccca6001c1f5ac0f6a46852af
字号:
package example;
import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
public class Example2Test {
Example2 e2 =null;
@Before
public void myBefore() throws Exception {
e2= new Example2();
}
@After
public void myAfter() throws Exception {
e2=null;
}
@Test(timeout=300)
public void name() {
assertEquals("liuwei",e2.getName());
}
@Ignore
public void testGetAge() {
assertEquals(30,e2.getAge());
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -