Eclipse JUnit - possible causes of seeing “initializationError” in Eclipse window

后端 未结 25 1351
情深已故
情深已故 2020-12-13 12:35

I know this question is pretty general but I haven\'t found any hints on why this error may show up. What are possible causes of seeing initalizationError in Eclips

25条回答
  •  难免孤独
    2020-12-13 12:47

    In my case, I had the following import in my test case:

    import org.junit.jupiter.api.Test;

    The correct import is:

    import org.junit.Test;

    Don't just import any old Test type from junit, make sure you pick the correct one.

提交回复
热议问题