基础设置

设置护眼色

File -> Settings -> Editor -> Color Scheme -> General

把 Scheme 设置为 IntelliJ Light

打开 Text 设置 Default text 的背景颜色(Background) 为 C7EDCC
image.png

JUnitGenerator

TesterBase 代码如下

  1. import com.hn.Application;
  2. import org.junit.runner.RunWith;
  3. import org.springframework.boot.test.context.SpringBootTest;
  4. import org.springframework.test.context.junit4.SpringRunner;
  5. /**
  6. * web单元测试继承该类即可
  7. */
  8. @RunWith(SpringRunner.class)
  9. @SpringBootTest(classes = Application.class)
  10. public abstract class TesterBase {}

image-20210410085503138.png

Alt+Enter 生成 Test

image-20210410085217921.png

image-20210410085316605.png

image-20210410085618524.png