JUnit: how to avoid “no runnable methods” in test utils classes

后端 未结 10 763
清酒与你
清酒与你 2020-11-30 05:35

I have switched to JUnit4.4 from JUnit3.8. I run my tests using ant, all my tests run successfully but test utility classes fail with \"No runnable methods\" error. The patt

10条回答
  •  借酒劲吻你
    2020-11-30 05:41

    In your test class if wrote import org.junit.jupiter.api.Test; delete it and write import org.junit.Test; In this case it worked me as well.

提交回复
热议问题