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
Just try "Project > Clean..." - seems to be THE solution to many problems in Eclipse!
My mistake was that I missed out @Test annotation on the test method.
I had the same issue... I was using maven building tool with JUnit dependency scope as 'test' and my @Test method was in main module.
To resolve, I've: 1. Commented the scope tag of JUnit dependency in the pom.xml 2. Rebuilt the package 3. Made sure the Test class has only one constructor
The issue can be two-folded: 1. The JUnit dependency is limited to test scope and the @Test method is in main scope 2. The test class has more than one constructor
Junit 4.11 doesn't work with Spring Test framework. Also this link InitializationError When Use Spring + Junit explains how to debug junit initalizationError in eclipse.
I received this error when the class was annotated with @Ignore and I tried to run a specific test via right clicking on it. Removing the @Ignore fixed the problem.
I had the same problem: Once it was excel path issue and other time it was missing @Test
annotation.