• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

junit throwing exception to pass the test

 
Juan Villena
Greenhorn
Posts: 20
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


***AFTER TESTING -- THIS IS THE ERROR ***
Failure: junit.framework.ComparisonFailure: null expected:<[unrecognized token:]$> but was:<[]$>

Hello Everyone, i need some help about throwing an exception in my Junit Test
I am trying throw an exception and pass the test, when the input String found the symbol $
Any Suggestion??

Thanks
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33700
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The code looks fine. Can you show the test as well? (Note there are code tags that make the code easier to read. I added them to your first post. You can find them right below the subject line when editing.)
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic