A B C D E G J N O R S T U

A

addBehavior(String, JsBehavior) - Method in interface biz.xsoftware.mock.client.JsMockObject
 
addBehavior(String, JsBehavior) - Method in class biz.xsoftware.mock.client.JsMockSuperclass
 
addIgnore(String) - Method in interface biz.xsoftware.mock.client.JsMockObject
When calling expect, the MockObject will ignore this method, so it will not result in an exception.
addIgnore(String) - Method in class biz.xsoftware.mock.client.JsMockSuperclass
 
addReturnValue(String, Object) - Method in interface biz.xsoftware.mock.client.JsMockObject
Add a return value to return when 'method' is called.
addReturnValue(String, Object) - Method in class biz.xsoftware.mock.client.JsMockSuperclass
 
addThrowException(String, Throwable) - Method in interface biz.xsoftware.mock.client.JsMockObject
Add an exception to throw when a method on the mockObject is called.
addThrowException(String, Throwable) - Method in class biz.xsoftware.mock.client.JsMockSuperclass
 
ANY - Static variable in interface biz.xsoftware.mock.client.JsMockObject
Field used to expect any method so expectCall returns as soon as any method is called.

B

biz.xsoftware.mock.client - package biz.xsoftware.mock.client
 

C

clone(Object[]) - Method in interface biz.xsoftware.mock.client.JsBehavior
 

D

DEFAULT_WAIT_TIME - Static variable in class biz.xsoftware.mock.client.JsMockSuperclass
Default wait time to wait for a method to be called once expectCall is called.

E

expect(String) - Method in interface biz.xsoftware.mock.client.JsMockObject
Waits for one and only one method to be called.
expect(String[]) - Method in interface biz.xsoftware.mock.client.JsMockObject
Waits for all the methods to be called.
expect(String) - Method in class biz.xsoftware.mock.client.JsMockSuperclass
 
expect(String[]) - Method in class biz.xsoftware.mock.client.JsMockSuperclass
 

G

getAllParams() - Method in class biz.xsoftware.mock.client.JsCalledMethod
 
getExpectTimeout() - Method in interface biz.xsoftware.mock.client.JsMockObject
 
getExpectTimeout() - Method in class biz.xsoftware.mock.client.JsMockSuperclass
 
getHowItWasCalled() - Method in class biz.xsoftware.mock.client.JsCalledMethod
 
getMethodName() - Method in class biz.xsoftware.mock.client.JsCalledMethod
 
getParameter(int) - Method in class biz.xsoftware.mock.client.JsCalledMethod
 
getParameterCount() - Method in class biz.xsoftware.mock.client.JsCalledMethod
 
getReason() - Method in exception biz.xsoftware.mock.client.JsExpectFailedException
Gets the reason expecting the call(s) failed.

J

JsBehavior - Interface in biz.xsoftware.mock.client
An implementation of this class must have the
JsCalledMethod - Class in biz.xsoftware.mock.client
 
JsCalledMethod(String, Object[], Throwable) - Constructor for class biz.xsoftware.mock.client.JsCalledMethod
 
JsExpectFailedException - Exception in biz.xsoftware.mock.client
This Exception is thrown when something is expected to happen and doesn't.
JsExpectFailedException() - Constructor for exception biz.xsoftware.mock.client.JsExpectFailedException
 
JsExpectFailedException(String, Object[], String) - Constructor for exception biz.xsoftware.mock.client.JsExpectFailedException
Constructor for Expects that fail with a reason and message.
JsMockEntry - Class in biz.xsoftware.mock.client
 
JsMockEntry() - Constructor for class biz.xsoftware.mock.client.JsMockEntry
 
JsMockObject - Interface in biz.xsoftware.mock.client
The interface all mock objects implement.
JsMockSuperclass - Class in biz.xsoftware.mock.client
This is a super class for mock Objects.
JsMockSuperclass() - Constructor for class biz.xsoftware.mock.client.JsMockSuperclass
Default constructor of superclass of all mockObjects with a delay of 10 seconds.
JsMockSuperclass(int) - Constructor for class biz.xsoftware.mock.client.JsMockSuperclass
The constructor to use to override the default delay(DEFAULT_WAIT_TIME) such that the mock object will give methods a longer time to be called before timing out to fail the test.
JsMockSuperclass(String) - Constructor for class biz.xsoftware.mock.client.JsMockSuperclass
 

N

NONE - Static variable in interface biz.xsoftware.mock.client.JsMockObject
Field used to expect that no methods have been called.

O

onModuleLoad() - Method in class biz.xsoftware.mock.client.JsMockEntry
 

R

removeIgnore(String) - Method in interface biz.xsoftware.mock.client.JsMockObject
Removes the method from the ignored methods set.
removeIgnore(String) - Method in class biz.xsoftware.mock.client.JsMockSuperclass
 
retrieveCalledMethod(int) - Method in exception biz.xsoftware.mock.client.JsExpectFailedException
Gives you back the CalledMethods giving you access to the parameters that were passed in and the stack traces of how they were called.
retrieveCalledMethodCount() - Method in exception biz.xsoftware.mock.client.JsExpectFailedException
 
runMethod(Object[]) - Method in interface biz.xsoftware.mock.client.JsBehavior
This method will be called in place of the interface method you are expecting to be called.

S

setCalledMethods(Object[]) - Method in exception biz.xsoftware.mock.client.JsExpectFailedException
 
setDefaultReturnValue(String, Object) - Method in interface biz.xsoftware.mock.client.JsMockObject
Set the DefaultReturnValue for a 'method'
setDefaultReturnValue(String, Object) - Method in class biz.xsoftware.mock.client.JsMockSuperclass
 
setExpectTimeout(int) - Method in interface biz.xsoftware.mock.client.JsMockObject
 
setExpectTimeout(int) - Method in class biz.xsoftware.mock.client.JsMockSuperclass
 
setReason(String) - Method in exception biz.xsoftware.mock.client.JsExpectFailedException
 

T

TIMED_OUT - Static variable in exception biz.xsoftware.mock.client.JsExpectFailedException
Expect failed because an event never came and waiting finally timed out.
toString() - Method in class biz.xsoftware.mock.client.JsCalledMethod
 
toString() - Method in exception biz.xsoftware.mock.client.JsExpectFailedException
 

U

UNEXPECTED_CALL_AFTER - Static variable in exception biz.xsoftware.mock.client.JsExpectFailedException
Expect failed because a method you did not list in expected methods was called after all your expected methods were called.
UNEXPECTED_CALL_BEFORE - Static variable in exception biz.xsoftware.mock.client.JsExpectFailedException
Expect failed because a method you did not list in expected methods was called before or during the other methods you did expect.
UNEXPECTED_ON_NONE - Static variable in exception biz.xsoftware.mock.client.JsExpectFailedException
Expect failed because you expected no methods to be called, but a method was called.

A B C D E G J N O R S T U

Copyright © 2000 Dean Hiller All Rights Reserved.
If you would like a shared copyright, contact me at deanhiller@users.sourceforge.net
SourceForge