Everyone,
I have a rather weird problem popping up. I recently removed all "require bundle" statements from Eclipse ICE. Everything builds fine in the workbench and tests past if I run them with a "JUnit Plugin Test" launch configuration. However, when I run with our Tycho build, I get an error such as the following:
Tests run: 3, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.371 sec <<< FAILURE! - in org.eclipse.ice.caebat.batml.test.BatMLModelTester
checkLoadInput(org.eclipse.ice.caebat.batml.test.BatMLModelTester) Time elapsed: 0.202 sec
checkSetupForm(org.eclipse.ice.caebat.batml.test.BatMLModelTester) Time elapsed: 0.009 sec
checkProcess(org.eclipse.ice.caebat.batml.test.BatMLModelTester) Time elapsed: 0.008 sec <<< ERROR!
java.lang.IllegalArgumentException: The 'no null' constraint is violated
at org.eclipse.emf.common.util.AbstractEList.validate(AbstractEList.java:97)
at org.eclipse.emf.common.util.BasicEList.addUnique(BasicEList.java:417)
at org.eclipse.emf.common.notify.impl.NotifyingListImpl.doAddUnique(NotifyingListImpl.java:325)
at org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUnique(NotifyingListImpl.java:309)
at org.eclipse.emf.common.util.AbstractEList.add(AbstractEList.java:303)
at org.eclipse.ice.datastructures.form.emf.EMFComponent.save(EMFComponent.java:184)
at org.eclipse.ice.caebat.batml.BatMLModel.process(BatMLModel.java:150)
at org.eclipse.ice.caebat.batml.test.BatMLModelTester.checkProcess(BatMLModelTester.java:160)
Again, this doesn't happen in the workbench. I suspect that this is a dependency issue, in part because running it as a JUnit Plugin Test without the "Require Bundle" statements now takes a very long time. Tycho is not reporting any build errors, just test failures.