Community
Participate
Working Groups
When writing JUnit tests such as @InjectWith(MyDslInjectorProvider.class) @RunWith(XtextRunner.class) public class MyDslTest ... the Java validator associated to the DSL is used only during the first test, not in the other ones.
The XXXJavaValidator is added to the EValidator registry as a side-effect of the injector instantiation (eager binding). As we reuse the injector, the registration is deleted for the second test case when the registries are restored. I changed the generated XXXInjectorProvider to use two mementi - before and after the injector creation - to have the least impact. If you cannot update to MASTER, I recommend either using the XXXUiInjectorProvider or implementing your own IP similar to the XtextInjectorProvider. Fix pushed to MASTER.
Closing all bugs that were set to RESOLVED before Neon.0