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(TestRuleAssertionsRequired.java:48)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:48)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:65)
at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:55)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:367)
at java.lang.Thread.run(Unknown 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 https://github.com/elastic/elasticsearch/issues/15076

Great. That worked thanks