[antlr-interest] gUnit-to-jUnit and gUnit-maven problem. Correct tests throws exceptions after translation to jUnit

nikolaz at ukr.net nikolaz at ukr.net
Thu Jul 23 01:37:11 PDT 2009


Good afternoon!  
  
There is a problem with gUnit-to-jUnit code generation. Some generated tests breaks with exception. (The same problem is when gUnit is executed through maven)  
  
There is a simple example in attachments.  
It consists of grammar and gUnit test. When test is executed by internal gUnit interpreter it runs fine. When test is converted to jUnit test or executed by maven, some tests breaks with InvalidInputException.  
This problem is encounted only with some texts when input is wrong and "fail" result is expected, like this:  
  
//------------------- supertypes  
supertypes:  
"> NS3:P at ar entType1, ns:parentype2" FAIL  
  
  
In example archive there are two folders:  
'maven' - is a Maven2 project showing test error;  
'manual' - is a folder with the same grammar and gUnit test with readme how to manualy run test by gUnit interpreter. In this case tests are passed fine.  
____________________________  
WBR, Nikolay Zamosenchuk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090723/aa407f69/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/zip
Size: 6066 bytes
Desc: not available
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20090723/aa407f69/attachment.zip 


More information about the antlr-interest mailing list