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

java.lang.Object
  |
  +--org.apache.commons.jelly.TagSupport
        |
        +--org.apache.commons.jelly.tags.junit.AssertTagSupport
All Implemented Interfaces:
Tag
Direct Known Subclasses:
AssertEqualsTag, AssertTag, FailTag

public abstract class AssertTagSupport
extends TagSupport

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

Version:
$Revision: 1.8 $
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 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, 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 junit.framework.AssertionFailedError
Produces a failure assertion with the given message

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.