JUnit testing got initializationError with java.lang.Exception: No tests found matching

后端 未结 8 1523
别那么骄傲
别那么骄傲 2021-01-01 18:59

When running JUnit testing , it gave an initializationError: No tests found matching. Like this:

prodapi-main-junit
initializationError(org.junit.runner.man         


        
8条回答
  •  春和景丽
    2021-01-01 19:48

    First able Make sure that your methods annotated @test as well as the test class are public.

提交回复
热议问题