How do you unit test Java EE code?

前端 未结 4 1792
误落风尘
误落风尘 2021-01-31 18:26

I want to ask for your prefered way to test Java EE code?

I found only three project, that are trying to help to code unit tests in Java EE environment:

  • ht
4条回答
  •  难免孤独
    2021-01-31 18:54

    As you are interested in unit testing, I recommend JUnit. You can unit test the methods in the core classes. If you have difficulty in writing unit test cases using JUnit, then probably the design is not modular and it is highly coupled. First focus on your core functionality and test it using JUnit.

提交回复
热议问题