Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » UnitTest fails when running through Gradle(Exception java.lang.ExceptionInInitializerError running unittest in gradle )
UnitTest fails when running through Gradle [message #1778274] Tue, 12 December 2017 14:37
Alan Frye is currently offline Alan FryeFriend
Messages: 41
Registered: January 2017
I have created a standard java project using the gradle plugin that contains some utility classes for my xtext language. I have added this project to my grammars parent project. I have also added some unit test to the utility project that is referencing my languages injector provider and the unit test works within eclipse but when I try to execute the test from my gradle tasks it fails with the following error.

classMethod FAILED
        Caused by: java.lang.NullPointerException

Also the injector for the language we are referencing in the unit test also mixes in another grammar.

Previous Topic:UnitTest fails when running through Gradle
Next Topic:UnitTest fails when running through Gradle
Goto Forum:

Current Time: Sat Oct 20 13:08:21 GMT 2018

Powered by FUDForum. Page generated in 0.01952 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top