jmunit.framework.cldc11
Class AssertionFailedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
jmunit.framework.cldc11.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
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 |
AssertionFailedException
public AssertionFailedException()
- The default constructor.
It increases the amount of failed tests in the final result.
- Since:
- JMUnit 1.0