d0d439fbcda6001c1f5ac0f6a46852af

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

TXT
36
字号
package example;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.Ingore;

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 + =
减小字号Ctrl + -
显示快捷键?