|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.jelly.TagSupport
org.apache.commons.jelly.xpath.XPathTagSupport
org.apache.commons.jelly.tags.junit.AssertTagSupport
The abstract base class of any assertion tag which is useful for implementation inheritence.
| Field Summary |
| Fields inherited from class org.apache.commons.jelly.TagSupport |
body, context, hasTrimmed, parent, shouldTrim |
| Constructor Summary | |
AssertTagSupport()
|
|
| Method Summary | |
protected void |
assertEquals(boolean expected,
boolean actual)
|
protected void |
assertEquals(byte expected,
byte actual)
|
protected void |
assertEquals(char expected,
char actual)
|
protected void |
assertEquals(double expected,
double actual)
|
protected void |
assertEquals(float expected,
float actual)
|
protected void |
assertEquals(int expected,
int actual)
|
protected void |
assertEquals(long expected,
long actual)
|
protected void |
assertEquals(java.lang.Object expected,
java.lang.Object actual)
|
protected void |
assertEquals(short expected,
short actual)
|
protected void |
assertEquals(java.lang.String message,
boolean expected,
boolean actual)
|
protected void |
assertEquals(java.lang.String message,
byte expected,
byte actual)
|
protected void |
assertEquals(java.lang.String message,
char expected,
char actual)
|
protected void |
assertEquals(java.lang.String message,
double expected,
double actual)
|
protected void |
assertEquals(java.lang.String message,
float expected,
float actual)
|
protected void |
assertEquals(java.lang.String message,
int expected,
int actual)
|
protected void |
assertEquals(java.lang.String message,
long expected,
long actual)
|
protected void |
assertEquals(java.lang.String message,
java.lang.Object expected,
java.lang.Object actual)
Fail if ! |
protected void |
assertEquals(java.lang.String message,
short expected,
short actual)
|
protected void |
assertFalse(boolean actual)
Fail if actual is true |
protected void |
assertFalse(java.lang.String message,
boolean actual)
Fail if actual is true |
protected void |
assertNotNull(java.lang.Object actual)
|
protected void |
assertNotNull(java.lang.String message,
java.lang.Object actual)
Fail if actual is null |
protected void |
assertNotSame(java.lang.Object expected,
java.lang.Object actual)
|
protected void |
assertNotSame(java.lang.String message,
java.lang.Object expected,
java.lang.Object actual)
Fail if expected == actual. |
protected void |
assertNull(java.lang.Object actual)
|
protected void |
assertNull(java.lang.String message,
java.lang.Object actual)
Fail if actual is not null |
protected void |
assertSame(java.lang.Object expected,
java.lang.Object actual)
|
protected void |
assertSame(java.lang.String message,
java.lang.Object expected,
java.lang.Object actual)
Fail if expected ! |
protected void |
assertTrue(boolean actual)
Fail if actual is not true |
protected void |
assertTrue(java.lang.String message,
boolean actual)
Fail if actual is not true |
protected void |
fail()
Produces a failure assertion with a default message |
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, 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 |
| Methods inherited from interface org.apache.commons.jelly.Tag |
doTag |
| Constructor Detail |
public AssertTagSupport()
| Method Detail |
protected void fail(java.lang.String message)
throws JellyAssertionFailedError
JellyAssertionFailedError - to signify failure
protected void fail()
throws JellyAssertionFailedError
JellyAssertionFailedError - to signify failure
protected void fail(java.lang.String message,
java.lang.String detail)
throws JellyAssertionFailedError
JellyAssertionFailedError - to signify failure
protected void failNotEquals(java.lang.String message,
java.lang.Object expected,
java.lang.Object actual,
java.lang.String expressions)
throws JellyAssertionFailedError
JellyAssertionFailedError - if expected != actual.
protected void assertTrue(java.lang.String message,
boolean actual)
throws JellyAssertionFailedError
message - failure messageactual - value to test
JellyAssertionFailedError - to signify failure
protected void assertTrue(boolean actual)
throws JellyAssertionFailedError
actual - value to test
JellyAssertionFailedError - to signify failure
protected void assertFalse(java.lang.String message,
boolean actual)
throws JellyAssertionFailedError
message - failure messageactual - value to test
JellyAssertionFailedError - to signify failure
protected void assertFalse(boolean actual)
throws JellyAssertionFailedError
actual - value to test
JellyAssertionFailedError - to signify failure
protected void assertEquals(java.lang.String message,
java.lang.Object expected,
java.lang.Object actual)
throws JellyAssertionFailedError
message - failure message.expected - expected value.actual - actual value to compare against expected.
JellyAssertionFailedError - to signify failure
protected void assertEquals(java.lang.Object expected,
java.lang.Object actual)
throws JellyAssertionFailedError
JellyAssertionFailedErrorassertEquals(String, Object, Object)
protected void assertEquals(java.lang.String message,
boolean expected,
boolean actual)
throws JellyAssertionFailedError
JellyAssertionFailedErrorassertEquals(String, Object, Object)
protected void assertEquals(boolean expected,
boolean actual)
throws JellyAssertionFailedError
JellyAssertionFailedErrorassertEquals(Object, Object)
protected void assertEquals(java.lang.String message,
byte expected,
byte actual)
throws JellyAssertionFailedError
JellyAssertionFailedErrorassertEquals(String, Object, Object)
protected void assertEquals(byte expected,
byte actual)
throws JellyAssertionFailedError
JellyAssertionFailedErrorassertEquals(Object, Object)
protected void assertEquals(java.lang.String message,
char expected,
char actual)
throws JellyAssertionFailedError
JellyAssertionFailedErrorassertEquals(String, Object, Object)
protected void assertEquals(char expected,
char actual)
throws JellyAssertionFailedError
JellyAssertionFailedErrorassertEquals(Object, Object)
protected void assertEquals(java.lang.String message,
double expected,
double actual)
throws JellyAssertionFailedError
JellyAssertionFailedErrorassertEquals(String, Object, Object)
protected void assertEquals(double expected,
double actual)
throws JellyAssertionFailedError
JellyAssertionFailedErrorassertEquals(Object, Object)
protected void assertEquals(java.lang.String message,
float expected,
float actual)
throws JellyAssertionFailedError
JellyAssertionFailedErrorassertEquals(String, Object, Object)
protected void assertEquals(float expected,
float actual)
throws JellyAssertionFailedError
JellyAssertionFailedErrorassertEquals(Object, Object)
protected void assertEquals(java.lang.String message,
int expected,
int actual)
throws JellyAssertionFailedError
JellyAssertionFailedErrorassertEquals(String, Object, Object)
protected void assertEquals(int expected,
int actual)
throws JellyAssertionFailedError
JellyAssertionFailedErrorassertEquals(Object, Object)
protected void assertEquals(java.lang.String message,
long expected,
long actual)
throws JellyAssertionFailedError
JellyAssertionFailedErrorassertEquals(String, Object, Object)
protected void assertEquals(long expected,
long actual)
throws JellyAssertionFailedError
JellyAssertionFailedErrorassertEquals(Object, Object)
protected void assertEquals(java.lang.String message,
short expected,
short actual)
throws JellyAssertionFailedError
JellyAssertionFailedErrorassertEquals(String, Object, Object)
protected void assertEquals(short expected,
short actual)
throws JellyAssertionFailedError
JellyAssertionFailedErrorassertEquals(Object, Object)
protected void assertNull(java.lang.String message,
java.lang.Object actual)
message - failure messageactual - value to check
JellyAssertionFailedError - to signify failureprotected void assertNull(java.lang.Object actual)
assertNull(String, Object)
protected void assertNotNull(java.lang.String message,
java.lang.Object actual)
message - failure messageactual - value to check
JellyAssertionFailedError - to signify failureprotected void assertNotNull(java.lang.Object actual)
assertNotNull(String, Object)
protected void assertSame(java.lang.String message,
java.lang.Object expected,
java.lang.Object actual)
throws JellyAssertionFailedError
message - failure message.expected - expected value.actual - actual value to compare against expected.
JellyAssertionFailedError - to signify failure
protected void assertSame(java.lang.Object expected,
java.lang.Object actual)
throws JellyAssertionFailedError
JellyAssertionFailedErrorassertSame(String, Object, Object)
protected void assertNotSame(java.lang.String message,
java.lang.Object expected,
java.lang.Object actual)
throws JellyAssertionFailedError
message - failure message.expected - expected value.actual - actual value to compare against expected.
JellyAssertionFailedError - to signify failure
protected void assertNotSame(java.lang.Object expected,
java.lang.Object actual)
throws JellyAssertionFailedError
JellyAssertionFailedErrorassertNotSame(String, Object, Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||