ILOG JRules

ilog.rules.ras.core.scenario
Class IlrAssertionFailedError

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Error
          extended by junit.framework.AssertionFailedError
              extended by ilog.rules.ras.core.scenario.IlrAssertionFailedError
All Implemented Interfaces:
Serializable

public class IlrAssertionFailedError
extends junit.framework.AssertionFailedError

Thrown when an assertion fails in the ILOG tests.

See Also:
Serialized Form

Constructor Summary
IlrAssertionFailedError(String message)
          Constructor.
 
Method Summary
 void printStackTrace(PrintStream s)
          Overrides the Throwable printStackTrace method.
 void printStackTrace(PrintWriter s)
          Overrides the Throwable printStackTrace method.
 void setStackTrace(StackTraceElement[] stackTraceElements, String className)
          Sets a simplified stack trace with only the customer stack trace.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IlrAssertionFailedError

public IlrAssertionFailedError(String message)
Constructor.

Parameters:
message - The error message.
Method Detail

printStackTrace

public void printStackTrace(PrintStream s)
Overrides the Throwable printStackTrace method. It avoids printing a stack trace for the ILOG tests that do not have one. Only KPI AssertionFailed would have a simplified stack trace with only the customer stack trace.

Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintWriter s)
Overrides the Throwable printStackTrace method. It avoids printing a stack trace for the ILOG tests that do not have one. Only KPI AssertionFailed would have a simplified stack trace with only the customer stack trace.

Overrides:
printStackTrace in class Throwable

setStackTrace

public void setStackTrace(StackTraceElement[] stackTraceElements,
                          String className)
Sets a simplified stack trace with only the customer stack trace. This method is used during a KPI AssertionFailed error.

Parameters:
stackTraceElements - The real stack trace.
className - The KPI class name.

ILOG JRules