jmunit.framework.cldc10
Class AssertionFailedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by jmunit.framework.cldc10.AssertionFailedException

public final class AssertionFailedException
extends java.lang.Exception

A sub-class of Exception used by the framework to manage a fail in a assertion. When a assertion goes wrong, the framework throws a AssertionFailedException to automatic update the Result object about this new fail. The amount of failed tests increase by one and the JMUnit screen's bar turn red. Also, the framework uses the exception to get information about which test failed, printing the data in the console, so the mobile application developer can identify the problem.

Since:
JMUnit 1.0

Constructor Summary
AssertionFailedException()
          The default constructor.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
getMessage, printStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AssertionFailedException

public AssertionFailedException()
The default constructor. It increases the amount of failed tests in the final result.

Since:
JMUnit 1.0