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 #1778272] Tue, 12 December 2017 14:35
Alan Frye is currently offline Alan FryeFriend
Messages: 40
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 work within eclipse successfully executes 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 Mar 17 04:47:45 GMT 2018

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

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