How to write test-abstract class in order to avoid code duplicate in junit

后端 未结 0 901
隐瞒了意图╮
隐瞒了意图╮ 2021-02-18 22:19

I\'m writing JUnit tests for a spring-boot project but I noticed that there are a lot of duplicate code. Is there any way to avoid this. For example:

Exemple-1:

@T

相关标签:
回答
  • 消灭零回复
提交回复
热议问题