首页 > 对一个方法进行单元测试没有自动生成@before标签,只有@test

对一个方法进行单元测试没有自动生成@before标签,只有@test

package mapper;

import static org.junit.Assert.*;

import org.junit.Test;

public class UserMapperTest {

@Test
public void testFindUserById() {
    fail("Not yet implemented");
}

}
《《《《《《《《《《《《《《《《
这是对一个方法进行单元测试自动生成的,为什么没有自动生成@before?


新建test的时候可以勾选的

【热门文章】
【热门文章】