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 #1778271] Tue, 12 December 2017 14:34
Alan Frye is currently offline Alan FryeFriend
Messages: 41
Registered: January 2017
Member
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
    java.lang.ExceptionInInitializerError
        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:Generating code automatically on the basis of Xtext grammar
Next Topic:UnitTest fails when running through Gradle
Goto Forum:
  


Current Time: Tue Apr 16 21:25:25 GMT 2024

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

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

Back to the top