patterntesting.runtime.junit
Class Failures

Package class diagram package Failures
java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Error
          extended by java.lang.AssertionError
              extended by patterntesting.runtime.junit.Failures
All Implemented Interfaces:
Serializable

public final class Failures
extends AssertionError

For the ObjectTester and other tester classes we need a chance to collect the thrown Assertions and throw it at the end of a combined or complex check.

Since:
1.0.3 (13.09.2010)
Author:
oliver
See Also:
Serialized Form

Constructor Summary
Failures()
           
 
Method Summary
 void add(Class<?> clazz, AssertionError error)
          Adds the given class and error to the internal error colllection.
 Dictionary<Class<?>,AssertionError> getErrors()
          Gets the errors.
 String getMessage()
          Gets the message.
 boolean hasErrors()
          Checks for errors.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Failures

public Failures()
Method Detail

add

public void add(Class<?> clazz,
                AssertionError error)
Adds the given class and error to the internal error colllection.

Parameters:
clazz - the clazz
error - the error

getErrors

public Dictionary<Class<?>,AssertionError> getErrors()
Gets the errors.

Returns:
the errors

hasErrors

public boolean hasErrors()
Checks for errors.

Returns:
true, if successful

getMessage

public String getMessage()
Gets the message.

Overrides:
getMessage in class Throwable
Returns:
the message
See Also:
Throwable.getMessage()


Copyright © 2002–2014 PatternTesting Team. All rights reserved.