we are using sonarqube with maven in eclipse.
java Amazon Corretto\jdk11.0.7_10
Trying to write a simple test for a java program named Processor.java but keeps getting error message NoClassDefFoundError. I’m unable to find out why this can not be initialize. I have sonarqube working for all classes that does not use methods in this class or inherits from this class.
I can run the junit test in eclipse and they work, but in sonarqube they fail.
java.lang.NoClassDefFoundError: Could not initialize class com.xyz.cs.automationagent.processor.Processor at com.xyz.cs.automationagent.processor.ProcessorTest.testReplaceParameters(ProcessorTest.java:53)