Skip to content

Commit

Permalink
update post
Browse files Browse the repository at this point in the history
  • Loading branch information
mzlogin committed Sep 25, 2024
1 parent c7e762d commit 70a652f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _posts/2024-09-25-custom-junit4-test-class.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ mindmap: false
mindmap2: false
---

本文介绍如何通过自定义 IDEA 的 JUnit4 Test Class 模板,实现生成测试类时自动注入 logger 和被测 Service。

## 背景

在 IntelliJ IDEA 中,通过快捷键可以快速生成 JUnit4 测试类,但是生成测试类以后,总是需要手动添加 logger 和被测 Service 的注入,虽然是一个很小的「重复动作」,但程序员还是不能忍(其实忍了很多年了)。
Expand Down

0 comments on commit 70a652f

Please sign in to comment.