This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Assert doesn't work

 
Dennis Callag
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I've tried almost everything to enable 'assert' in my portlet - but my portlet ignores it completely (although the file size increases when using assert statement in the code). The variable MAVEN_OPTS=-ea is also set.

Even a simple statement like 'assert false;' doesn't lead to an assertion.

Could anyone help me or give me a hint?

Thanks!
 
Ryan Wilson
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What portal server/version are you running?
 
Dennis Callag
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JBoss Portal 2.4.0
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic