net.sf.xmlmatcher.js
Class AssertsImpl
java.lang.Object
net.sf.xmlmatcher.js.AssertsImpl
- All Implemented Interfaces:
- Asserts
public class AssertsImpl
- extends java.lang.Object
- implements Asserts
Field Summary |
protected org.w3c.dom.Element |
mActual
|
protected org.w3c.dom.Element |
mTemplate
|
Method Summary |
void |
equal(java.lang.String xpath1,
java.lang.String xpath2)
|
void |
equal(java.lang.String xpath1,
java.lang.String xpath2,
double tolerance)
|
void |
exists(java.lang.String xpath)
|
void |
isFalse(java.lang.String message,
boolean condition)
|
void |
isTrue(java.lang.String message,
boolean condition)
|
void |
notExists(java.lang.String xpath)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mTemplate
protected final org.w3c.dom.Element mTemplate
mActual
protected final org.w3c.dom.Element mActual
AssertsImpl
public AssertsImpl()
AssertsImpl
public AssertsImpl(java.lang.Object template,
java.lang.Object actual)
isTrue
public void isTrue(java.lang.String message,
boolean condition)
throws JsAssertionFailedException
- Specified by:
isTrue
in interface Asserts
- Throws:
JsAssertionFailedException
isFalse
public void isFalse(java.lang.String message,
boolean condition)
throws JsAssertionFailedException
- Specified by:
isFalse
in interface Asserts
- Throws:
JsAssertionFailedException
exists
public void exists(java.lang.String xpath)
throws InvalidTemplateException,
XMLMismatchException
- Specified by:
exists
in interface Asserts
- Throws:
InvalidTemplateException
XMLMismatchException
notExists
public void notExists(java.lang.String xpath)
throws InvalidTemplateException,
XMLMismatchException
- Specified by:
notExists
in interface Asserts
- Throws:
InvalidTemplateException
XMLMismatchException
equal
public void equal(java.lang.String xpath1,
java.lang.String xpath2)
throws InvalidTemplateException,
XMLMismatchException
- Specified by:
equal
in interface Asserts
- Throws:
InvalidTemplateException
XMLMismatchException
equal
public void equal(java.lang.String xpath1,
java.lang.String xpath2,
double tolerance)
throws InvalidTemplateException,
XMLMismatchException
- Specified by:
equal
in interface Asserts
- Throws:
InvalidTemplateException
XMLMismatchException
Copyright © 2007. All Rights Reserved.