org.apache.commons.jelly.tags.junit
Class AssertTagSupport
java.lang.Object
|
+--org.apache.commons.jelly.TagSupport
|
+--org.apache.commons.jelly.tags.xml.XPathTagSupport
|
+--org.apache.commons.jelly.tags.junit.AssertTagSupport
- All Implemented Interfaces:
- Tag
- Direct Known Subclasses:
- AssertEqualsTag, AssertTag, FailTag
- public abstract class AssertTagSupport
- extends XPathTagSupport
The abstract base class of any assertion tag which is
useful for implementation inheritence.
- Version:
- $Revision: 1.8 $
- Author:
- James Strachan
Method Summary |
protected void |
fail(java.lang.String message)
Produces a failure assertion with the given message |
protected void |
fail(java.lang.String message,
java.lang.String detail)
Produces a failure assertion with the given message and added detail. |
protected void |
failNotEquals(java.lang.String message,
java.lang.Object expected,
java.lang.Object actual)
Produces a failure if the actual value was not equal to the expected value |
Methods inherited from class org.apache.commons.jelly.TagSupport |
findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isTrim, setBody, setContext, setParent, setTrim, trimBody |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.commons.jelly.Tag |
doTag |
AssertTagSupport
public AssertTagSupport()
fail
protected void fail(java.lang.String message)
throws junit.framework.AssertionFailedError
- Produces a failure assertion with the given message
fail
protected void fail(java.lang.String message,
java.lang.String detail)
throws junit.framework.AssertionFailedError
- Produces a failure assertion with the given message and added detail.
failNotEquals
protected void failNotEquals(java.lang.String message,
java.lang.Object expected,
java.lang.Object actual)
throws junit.framework.AssertionFailedError
- Produces a failure if the actual value was not equal to the expected value
Copyright © 2002-2002 Apache Software Foundation. All Rights Reserved.