Assertions mismatch when running integration tests in eclipse (Elastic Search 2.2.3)

HI all,

I'm having problems running integration tests extending ESIntegTestCase after importing version 2.2.3 as a maven project in eclipse. When running the test I get this:

java.lang.Exception: Assertions mismatch: -ea was not specified but -Dtests.asserts=true
at __randomizedtesting.SeedInfo.seed([FDCEF7A6E3867FB1]:0)
at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(
at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(
at com.carrotsearch.randomizedtesting.ThreadLeakControl$
at Source)

So far I've left the POMs as is. Any help would be greatly appreciated.

You need to add -ea when you run Junit.

Similar to

Great. That worked thanks