org.apache.commons.jelly.tags.junit
Class JellyAssertionFailedError
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Error
|
+--junit.framework.AssertionFailedError
|
+--org.apache.commons.jelly.tags.junit.JellyAssertionFailedError
- All Implemented Interfaces:
- org.apache.commons.jelly.LocationAware, java.io.Serializable
- public class JellyAssertionFailedError
- extends junit.framework.AssertionFailedError
- implements org.apache.commons.jelly.LocationAware
JellyAssertionFailedError
is
a JUnit AssertionFailedError which is LocationAware so that it can include
details of where in the JellyUnit test case that the failure occurred.
- Version:
- $Revision: 1.5 $
- Author:
- James Strachan
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
JellyAssertionFailedError
public JellyAssertionFailedError()
JellyAssertionFailedError
public JellyAssertionFailedError(java.lang.String message)
JellyAssertionFailedError
public JellyAssertionFailedError(java.lang.String message,
java.lang.Throwable cause)
JellyAssertionFailedError
public JellyAssertionFailedError(java.lang.Throwable cause)
getCause
public java.lang.Throwable getCause()
getLineNumber
public int getLineNumber()
- Specified by:
getLineNumber
in interface org.apache.commons.jelly.LocationAware
- Returns:
- the line number of the tag
setLineNumber
public void setLineNumber(int lineNumber)
- Sets the line number of the tag
- Specified by:
setLineNumber
in interface org.apache.commons.jelly.LocationAware
getColumnNumber
public int getColumnNumber()
- Specified by:
getColumnNumber
in interface org.apache.commons.jelly.LocationAware
- Returns:
- the column number of the tag
setColumnNumber
public void setColumnNumber(int columnNumber)
- Sets the column number of the tag
- Specified by:
setColumnNumber
in interface org.apache.commons.jelly.LocationAware
getFileName
public java.lang.String getFileName()
- Specified by:
getFileName
in interface org.apache.commons.jelly.LocationAware
- Returns:
- the Jelly file which caused the problem
setFileName
public void setFileName(java.lang.String fileName)
- Sets the Jelly file which caused the problem
- Specified by:
setFileName
in interface org.apache.commons.jelly.LocationAware
getElementName
public java.lang.String getElementName()
- Specified by:
getElementName
in interface org.apache.commons.jelly.LocationAware
- Returns:
- the element name which caused the problem
setElementName
public void setElementName(java.lang.String elementName)
- Sets the element name which caused the problem
- Specified by:
setElementName
in interface org.apache.commons.jelly.LocationAware
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in class java.lang.Throwable
getReason
public java.lang.String getReason()
printStackTrace
public void printStackTrace(java.io.PrintWriter s)
- Overrides:
printStackTrace
in class java.lang.Throwable
printStackTrace
public void printStackTrace(java.io.PrintStream s)
- Overrides:
printStackTrace
in class java.lang.Throwable
printStackTrace
public void printStackTrace()
- Overrides:
printStackTrace
in class java.lang.Throwable
Copyright © 2002-2004 Apache Software Foundation. All Rights Reserved.