net.sf.xmlmatcher.js.rhino
Class RhinoAssert

java.lang.Object
  extended by org.mozilla.javascript.ScriptableObject
      extended by net.sf.xmlmatcher.js.rhino.RhinoAssert
All Implemented Interfaces:
java.io.Serializable, org.mozilla.javascript.debug.DebuggableObject, org.mozilla.javascript.Scriptable

public class RhinoAssert
extends org.mozilla.javascript.ScriptableObject

See Also:
Serialized Form

Field Summary
static java.lang.String JAVASCRIPT_CLASSNAME
           
static java.lang.String JAVASCRIPT_VAR_NAME
           
 
Fields inherited from class org.mozilla.javascript.ScriptableObject
DONTENUM, EMPTY, PERMANENT, READONLY
 
Fields inherited from interface org.mozilla.javascript.Scriptable
NOT_FOUND
 
Constructor Summary
RhinoAssert()
           
RhinoAssert(java.lang.Object template, java.lang.Object actual)
           
 
Method Summary
 java.lang.String getClassName()
           
 void jsFunction_equal(java.lang.String xpath1, java.lang.String xpath2, double tolerance)
           
 void jsFunction_equals(java.lang.String xpath1, java.lang.String xpath2)
           
 void jsFunction_isFalse(java.lang.String message, boolean condition)
           
 void jsFunction_isTrue(java.lang.String message, boolean condition)
           
 void jsFunction_pathExists(java.lang.String xpath)
           
 
Methods inherited from class org.mozilla.javascript.ScriptableObject
associateValue, callMethod, callMethod, defineClass, defineClass, defineClass, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, equivalentValues, get, get, getAllIds, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, has, has, hasInstance, hasProperty, hasProperty, isSealed, put, put, putProperty, putProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setParentScope, setPrototype
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAVASCRIPT_CLASSNAME

public static final java.lang.String JAVASCRIPT_CLASSNAME
See Also:
Constant Field Values

JAVASCRIPT_VAR_NAME

public static final java.lang.String JAVASCRIPT_VAR_NAME
See Also:
Constant Field Values
Constructor Detail

RhinoAssert

public RhinoAssert()

RhinoAssert

public RhinoAssert(java.lang.Object template,
                   java.lang.Object actual)
Method Detail

getClassName

public java.lang.String getClassName()
Specified by:
getClassName in interface org.mozilla.javascript.Scriptable
Specified by:
getClassName in class org.mozilla.javascript.ScriptableObject
Returns:
Classname that will be used in JavaScript "var obj = new Classname(...);"

jsFunction_isTrue

public void jsFunction_isTrue(java.lang.String message,
                              boolean condition)
                       throws JsAssertionFailedException
Throws:
JsAssertionFailedException

jsFunction_isFalse

public void jsFunction_isFalse(java.lang.String message,
                               boolean condition)
                        throws JsAssertionFailedException
Throws:
JsAssertionFailedException

jsFunction_pathExists

public void jsFunction_pathExists(java.lang.String xpath)
                           throws InvalidTemplateException,
                                  XMLMismatchException
Throws:
InvalidTemplateException
XMLMismatchException

jsFunction_equals

public void jsFunction_equals(java.lang.String xpath1,
                              java.lang.String xpath2)
                       throws InvalidTemplateException,
                              XMLMismatchException
Throws:
InvalidTemplateException
XMLMismatchException

jsFunction_equal

public void jsFunction_equal(java.lang.String xpath1,
                             java.lang.String xpath2,
                             double tolerance)
                      throws InvalidTemplateException,
                             XMLMismatchException
Throws:
InvalidTemplateException
XMLMismatchException


Copyright © 2007. All Rights Reserved.