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

java.lang.Object
  |
  +--org.apache.commons.jelly.TagSupport
        |
        +--org.apache.commons.jelly.xpath.XPathTagSupport
              |
              +--org.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.4 $
Author:
James Strachan

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
doTag, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

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.

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


Copyright © 2002-2004 Apache Software Foundation. All Rights Reserved.