org.apache.commons.jelly.tags.junit
Class AssertTagSupport

java.lang.Object
  extended byorg.apache.commons.jelly.TagSupport
      extended byorg.apache.commons.jelly.xpath.XPathTagSupport
          extended byorg.apache.commons.jelly.tags.junit.AssertTagSupport
All Implemented Interfaces:
org.apache.commons.jelly.Tag
Direct Known Subclasses:
AssertEqualsTag, AssertTag, AssertThrowsTag, FailTag

public abstract class AssertTagSupport
extends org.apache.commons.jelly.xpath.XPathTagSupport

The abstract base class of any assertion tag which is useful for implementation inheritence.

Version:
$Revision: 1.2 $
Author:
James Strachan

Field Summary
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
AssertTagSupport()
           
 
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, java.lang.String expressions)
          Produces a failure if the actual value was not equal to the expected value
 
Methods inherited from class org.apache.commons.jelly.xpath.XPathTagSupport
getXPathContext
 
Methods inherited from class org.apache.commons.jelly.TagSupport
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, 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
 

Constructor Detail

AssertTagSupport

public AssertTagSupport()
Method Detail

fail

protected void fail(java.lang.String message)
             throws JellyAssertionFailedError
Produces a failure assertion with the given message

Throws:
JellyAssertionFailedError

fail

protected void fail(java.lang.String message,
                    java.lang.String detail)
             throws JellyAssertionFailedError
Produces a failure assertion with the given message and added detail.

Throws:
JellyAssertionFailedError

failNotEquals

protected void failNotEquals(java.lang.String message,
                             java.lang.Object expected,
                             java.lang.Object actual,
                             java.lang.String expressions)
                      throws JellyAssertionFailedError
Produces a failure if the actual value was not equal to the expected value

Throws:
JellyAssertionFailedError