Could not initialize class org.elasticsearch.test.ESTestCase

I am trying to write a junit test which would create a org.elasticsearch.node.Node object. So I have created a class which extends ESIntegTestCase. However, when I run it, I get

java.lang.NoClassDefFoundError: Could not initialize class org.elasticsearch.test.ESTestCase

What am I doing wrong? My pom.xml includes

org.apache.lucene lucene-test-framework ${version.lucene} test org.elasticsearch.test framework ${version.elasticsearch} test com.google.guava guava 19.0

Usually I've seen this occur when there is a static initialization exception in the test, which causes ESTestCase to not load, and subsequent tests get the NoClassDefFoundError. Can you attach the full output of your test run?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.