Why use JUnit for testing?

后端 未结 11 1480
忘掉有多难
忘掉有多难 2020-12-12 09:59

Maybe my question is a newbie one, but I can not really understand the circumstances under which I would use junit?

Whether I write simple applications or larger one

11条回答
  •  情书的邮戳
    2020-12-12 10:31

    JUNIT is the method that is usually accepted by java developer. Where they can provide similar expected input to the function and decide accordingly that written code is perfectly written or if test case fails then different approach may also need to implement. JUNIT will make development fast and will ensure the 0 defects in the function.

提交回复
热议问题