A C D E F G H I M O P R S T U V W

A

ALWAYS_MATCHER - Static variable in class org.virtualmock.VM
Predefined AlwaysMatcher.
AllRecordedCallsMustBeInvokedRule - class org.virtualmock.rule.AllRecordedCallsMustBeInvokedRule.
Implementation of the Rule: ALL_RECORDED_CALLS_MUST_BE_INVOKED.
AllRecordedCallsMustBeInvokedRule(String, int, CallManager, ResourceManager) - Constructor for class org.virtualmock.rule.AllRecordedCallsMustBeInvokedRule
Constructor.
AlwaysMatcher - class org.virtualmock.matcher.AlwaysMatcher.
An implementation of ArgMatcher that ignores the actual argument values, and always passes matching and returns true.
AlwaysMatcher() - Constructor for class org.virtualmock.matcher.AlwaysMatcher
 
ArgMatcher - interface org.virtualmock.matcher.ArgMatcher.
An ArgMatcher allows different rules to be set for matching arguments to mock methods.
AspectUtils - class org.virtualmock.aspect.AspectUtils.
This class consists of utility methods which have been abstracted out of the Advice class.
AspectUtils() - Constructor for class org.virtualmock.aspect.AspectUtils
 
AspectjAspectUtils - class org.virtualmock.aspect.aspectj.AspectjAspectUtils.
This is a subclass of AspectUtils which implements behavior specific to AspectJ.
AspectjAspectUtils(AspectUtils) - Constructor for class org.virtualmock.aspect.aspectj.AspectjAspectUtils
Creates a new AspectjAspectUtils object.
AspectwerkzAspectUtils - class org.virtualmock.aspect.aspectwerkz.AspectwerkzAspectUtils.
This class implements behavior specific to Aspectwerkz.
AspectwerkzAspectUtils(AspectUtils) - Constructor for class org.virtualmock.aspect.aspectwerkz.AspectwerkzAspectUtils
Creates a new AspectwerkzAspectUtils object.
add(Call) - Method in class org.virtualmock.call.CallQueue
Adds a new call to the end of the queue, and also sets the signatureSequence for the call.
addClassExclusionPattern(String) - Method in class org.virtualmock.configuration.VMConfig
Add a pattern specifying a class or classes which should be excluded from VirtualMock processing.
addMockClass(Class) - Method in class org.virtualmock.VM
This tells VirtualMock that subsequent calls to this class will be intercepted by VirtualMock.
addMockClass(String) - Method in class org.virtualmock.call.CallManager
Indicates that all calls should be mocked for the specified class.
addRule(Rule) - Method in class org.virtualmock.rule.RuleManager
Adds a rule to be checked.
addRuleConfig(RuleConfig) - Method in class org.virtualmock.configuration.VMConfig
Add a RuleConfig.
areBothNotNull(Object, Object) - Method in class org.virtualmock.matcher.MatcherUtils
Checks if both arguments are not null.
areBothNull(Object, Object) - Method in class org.virtualmock.matcher.MatcherUtils
Checks if both arguments are null.

C

CALL_MANAGER - Static variable in class org.virtualmock.util.Toolbox
The constant key for the CallManager instance in the Toolbox.
Call - class org.virtualmock.call.Call.
Represents a method invocation.
Call(Signature, Object[]) - Constructor for class org.virtualmock.call.Call
Creates a new Call object which has no return value but has arguments.
Call(Signature) - Constructor for class org.virtualmock.call.Call
Creates a new Call object which has no return value and no arguments.
Call(Signature, Object[], Object) - Constructor for class org.virtualmock.call.Call
Creates a new Call object which has a return value and has arguments.
Call(Signature, Object) - Constructor for class org.virtualmock.call.Call
Creates a new Call object which has a return value but has no arguments.
Call(Signature, Object[], Throwable) - Constructor for class org.virtualmock.call.Call
Creates a new Call object which throws an throwable and has arguments.
Call(Signature, Throwable) - Constructor for class org.virtualmock.call.Call
Creates a new Call object which throws an throwable but has no arguments.
CallManager - class org.virtualmock.call.CallManager.
Manages recorded and invoked calls.
CallManager(InvokedCallQueue, RecordedCallQueue) - Constructor for class org.virtualmock.call.CallManager
Creates a new CallManager object.
CallQueue - class org.virtualmock.call.CallQueue.
This class represents a sequence of calls.
CallQueue() - Constructor for class org.virtualmock.call.CallQueue
 
ConfigDigester - class org.virtualmock.configuration.ConfigDigester.
This class uses Jakarta Commons Digester to read the VirtualMock configuration file.
ConfigDigester(InputStream) - Constructor for class org.virtualmock.configuration.ConfigDigester
Creates a new ConfigDigester object, with validation enabled.
ConfigDigester(InputStream, Digester) - Constructor for class org.virtualmock.configuration.ConfigDigester
Creates a new ConfigDigester object, with validation enabled, and using the specified Digester.
ConfigDigester(InputStream, boolean) - Constructor for class org.virtualmock.configuration.ConfigDigester
Creates a new ConfigDigester object, with validation enabled or disabled according to specified flag.
Constants - class org.virtualmock.Constants.
This class contains constants.
Constants() - Constructor for class org.virtualmock.Constants
 
characters(char[], int, int) - Method in class org.virtualmock.configuration.ExcludedClassesHandler
Overridden SAX event.
characters(char[], int, int) - Method in class org.virtualmock.rule.RuleHandler
Overridden SAX event.
checkAllRulesInCurrentPhase() - Method in class org.virtualmock.rule.RuleManager
Checks all rules in current phase.
clear() - Method in class org.virtualmock.call.CallQueue
Reinitialize by clearing out all calls.
create(Class, Class, String, Class[]) - Method in class org.virtualmock.call.Signature
Internal method which contains the logic to create a signature.
createArgumentNames(Object[]) - Method in class org.virtualmock.aspect.AspectUtils
Create dummy argument names.
createCallManager() - Method in class org.virtualmock.VMFactory
Create the CallManager.
createClasspath() - Method in class org.virtualmock.taskdef.VMTransformTask
Overridden method to handle classpath.
createClasspath() - Method in class org.virtualmock.taskdef.VMUnitTask
Overridden method to handle classpath.
createResourceManager() - Method in class org.virtualmock.VMFactory
Create the ResourceManager.
createRuleManager(List, ResourceManager) - Method in class org.virtualmock.VMFactory
Create the RuleManager.
createRules(CallManager, ResourceManager) - Method in class org.virtualmock.VMFactory
Create and configure the rules that will apply for this virtualmock session.
createVM() - Static method in class org.virtualmock.VMFactory
Creates a new instance of the VM class.

D

DynamicExcludeJoinPointController - class org.virtualmock.aspect.aspectwerkz.DynamicExcludeJoinPointController.
A custom AspectWerkz JoinPointController which will exclude joinpoints which are dynamically defined at runtime.
DynamicExcludeJoinPointController() - Constructor for class org.virtualmock.aspect.aspectwerkz.DynamicExcludeJoinPointController
 
deleteOutjarFile(File) - Method in class org.virtualmock.taskdef.VMTransformTask
Delete the output jar, if it exists.
deregisterAllComponents() - Static method in class org.virtualmock.util.Toolbox
Deregisters all components.
deregisterComponent(String) - Static method in class org.virtualmock.util.Toolbox
Deregisters a component from the Toolbox.

E

EQUALS_MATCHER - Static variable in class org.virtualmock.VM
Predefined EqualsMatcher.
EqualsMatcher - class org.virtualmock.matcher.EqualsMatcher.
An implementation of ArgMatcher that uses the equals() method to perform matching.
EqualsMatcher() - Constructor for class org.virtualmock.matcher.EqualsMatcher
 
ExcludedClassesHandler - class org.virtualmock.configuration.ExcludedClassesHandler.
DefaultHandler for VirtualMock RuleConfigs.
ExcludedClassesHandler() - Constructor for class org.virtualmock.configuration.ExcludedClassesHandler
 
ExcludedClassesParser - class org.virtualmock.configuration.ExcludedClassesParser.
Parses ExcludedClasses out of the VirtualMock config file.
ExcludedClassesParser(InputStream, ExcludedClassesHandler, SAXParserFactory) - Constructor for class org.virtualmock.configuration.ExcludedClassesParser
Creates a new ExcludedClassesParser object.
ExcludedClassesParserDataTest - class org.virtualmock.configuration.ExcludedClassesParserDataTest.
Tests that ExcludedClassesParser retrieves the correct data.
ExcludedClassesParserDataTest() - Constructor for class org.virtualmock.configuration.ExcludedClassesParserDataTest
 
endElement(String, String, String) - Method in class org.virtualmock.configuration.ExcludedClassesHandler
Overridden SAX event.
endElement(String, String, String) - Method in class org.virtualmock.rule.RuleHandler
Overridden SAX event.
equals(Object) - Method in class org.virtualmock.call.Signature
Compares this Signature to another object.
execute(JoinPoint) - Method in class org.virtualmock.aspect.aspectwerkz.MethodInterceptorAdvice
The template method from the superclass which contains all the logic for this advice.
execute(JoinPoint) - Method in class org.virtualmock.aspect.aspectwerkz.UnitTestInterceptorAdvice
The template method from the superclass which contains all the logic for this advice.
execute() - Method in class org.virtualmock.taskdef.VMTransformTask
Perform execution of the task, first performing necessary setup to run VirtualMock unit tests.
execute() - Method in class org.virtualmock.taskdef.VMUnitTask
Perform execution of the task, first performing necessary setup to run VirtualMock unit tests.

F

FAIL - Static variable in interface org.virtualmock.rule.Rule
Constant for the FAIL enforcement level.

G

getArgMatchers() - Method in class org.virtualmock.call.RecordedCall
Gets the ArgMatchers that are defined for this call (if any).
getArgTypes() - Method in class org.virtualmock.call.Call
Convenience method to get the ArgumentTypes from the Signature.
getArgTypes() - Method in class org.virtualmock.call.Signature
Accessor.
getArgValues() - Method in class org.virtualmock.call.Call
Accessor.
getArgValuesFromJoinPoint(JoinPoint) - Method in class org.virtualmock.aspect.aspectj.AspectjAspectUtils
Uses information obtained from a JoinPoint to build an array of argument values.
getArgValuesFromMethodJoinPoint(MethodJoinPoint) - Method in class org.virtualmock.aspect.aspectwerkz.AspectwerkzAspectUtils
Uses information obtained from a MethodJoinPoint to build an array of argument values.
getAspectWerkzClassname() - Method in class org.virtualmock.taskdef.VMTransformTask
Gets the classname for the AspectWerkz compiler.
getAspectjClassname() - Method in class org.virtualmock.taskdef.VMTransformTask
Gets the classname for the AspectJ compiler.
getAspectpath() - Method in class org.virtualmock.taskdef.VMTransformTask
Gets jar containing VirtualMock aspect classes to weave.
getAspectpathJarPrefix() - Method in class org.virtualmock.taskdef.VMTransformTask
Gets string which will be used to search the classpath for the aspectpath jar (using String.indexOf(String)).
getCallByCallId(String) - Method in class org.virtualmock.call.CallQueue
Gets a call based on the callId.
getCallId() - Method in class org.virtualmock.call.Call
The callId is the signature with a colon and the signatureSequence appended.
getCallManager() - Static method in class org.virtualmock.util.Toolbox
Gets the CallManager from the Toolbox.
getCalls() - Method in class org.virtualmock.call.CallQueue
Get all calls that have been added, in order.
getClassExclusionPatterns() - Method in class org.virtualmock.configuration.ExcludedClassesHandler
Returns a List representing the classExclusionPatterns defined in the configuration file.
getClassExclusionPatterns() - Method in class org.virtualmock.configuration.ExcludedClassesParser
Returns a List representing the classExclusionPatterns defined in the configuration file.
getClassExclusionPatterns() - Method in class org.virtualmock.configuration.VMConfig
Gets patterns specifying classes which should be excluded from VirtualMock processing.
getClassName() - Method in class org.virtualmock.call.Call
Accessor.
getClassName() - Method in class org.virtualmock.call.Signature
Returns the name of the class type of this Signature.
getClassType() - Method in class org.virtualmock.call.Signature
Accessor.
getClasspath() - Method in class org.virtualmock.taskdef.VMTransformTask
Gets the currently set classpath.
getCommandline() - Method in class org.virtualmock.taskdef.VMTransformTask
Gets the command line.
getComponent(String) - Static method in class org.virtualmock.util.Toolbox
Gets a component from the Toolbox.
getDefaultPrimitiveValue(Class) - Method in class org.virtualmock.util.PrimitiveUtils
Generate default return values for specified primitive type.
getEnforcementLevel() - Method in class org.virtualmock.rule.AllRecordedCallsMustBeInvokedRule
Accessor.
getEnforcementLevel() - Method in interface org.virtualmock.rule.Rule
Accessor.
getFirstCallWithMatchingSignature(Signature) - Method in class org.virtualmock.call.CallQueue
Gets the first call in the queue which has a signature matching the parameter.
getIndexOfFirstCallWithMatchingSignature(Signature) - Method in class org.virtualmock.call.CallQueue
Gets the index of the first call which has the same signature.
getIndexOfNextCallWithMatchingSignature(int, Signature) - Method in class org.virtualmock.call.CallQueue
Gets the index of the next call in the queue which has a signature matching the parameter, starting at the specified index.
getInjars() - Method in class org.virtualmock.taskdef.VMTransformTask
The input jars which will be woven.
getInstance() - Static method in class org.virtualmock.util.Toolbox
Gets the singleton instance.
getInvocationCount() - Method in class org.virtualmock.call.RecordedCall
Returns the number of times incrementInvocationCount() has been called on this Call.
getInvokedCallFromJoinPoint(JoinPoint) - Method in class org.virtualmock.aspect.aspectj.AspectjAspectUtils
Uses information obtained from a JoinPoint to build an InvokedCall.
getInvokedCallFromMethodJoinPoint(MethodJoinPoint) - Method in class org.virtualmock.aspect.aspectwerkz.AspectwerkzAspectUtils
Uses information obtained from a MethodJoinPoint to build an InvokedCall.
getKey() - Method in class org.virtualmock.rule.AllRecordedCallsMustBeInvokedRule
Accessor.
getKey() - Method in interface org.virtualmock.rule.Rule
Accessor.
getLastCall() - Method in class org.virtualmock.call.CallManager
Returns the last call that was recorded.
getMatchingCall(InvokedCall) - Method in class org.virtualmock.call.CallManager
Returns a recorded mock call which matches the specified invoked call, or null if none match.
getMatchingCall(InvokedCall) - Method in class org.virtualmock.call.RecordedCallQueue
Retrieve the call in the queue which matches the specified InvokedCall.
getMatchingSignatureCount(Signature) - Method in class org.virtualmock.call.CallQueue
Returns the number of calls in the queue with the specified signature.
getMethodName() - Method in class org.virtualmock.call.Call
Accessor.
getMethodName() - Method in class org.virtualmock.call.Signature
Accessor.
getNextCallWithMatchingSignature(int, Signature) - Method in class org.virtualmock.call.CallQueue
Gets the next call in the queue which has a signature matching the parameter, starting at the specified index.
getOutjar() - Method in class org.virtualmock.taskdef.VMTransformTask
Gets the output jar.
getPrimitiveTypeForWrapperClass(Class) - Method in class org.virtualmock.util.PrimitiveUtils
When passed a primitive wrapper type (such as Integer.class), returns the corresponding primitive type (such as int.class).
getRecordedCallQueue() - Method in class org.virtualmock.call.CallManager
Accessor.
getRecordedCalls() - Method in class org.virtualmock.call.CallManager
Convenience method to retrieve calls list for the RecordedCallQueue.
getReturnType() - Method in class org.virtualmock.call.Call
Accessor.
getReturnType() - Method in class org.virtualmock.call.Signature
Accessor.
getReturnValue() - Method in class org.virtualmock.call.Call
Accessor.
getRule(String) - Method in class org.virtualmock.rule.RuleManager
Returns the Rule for the specified key, or null if no Rule matches the key.
getRuleConfigs() - Method in class org.virtualmock.configuration.VMConfig
Gets RuleConfigs.
getRuleEnforcementLevels() - Method in class org.virtualmock.rule.RuleHandler
Returns a Map representing the enforcement levels for all Rules defined in the configuration file.
getRuleEnforcementLevels() - Method in class org.virtualmock.rule.RuleParser
Get a Map of ruleEnforcementLevels.
getRuleType() - Method in class org.virtualmock.configuration.RuleConfig
Accessor.
getRules() - Method in class org.virtualmock.rule.RuleManager
Returns all of the rules that are currently defined.
getSignature() - Method in class org.virtualmock.call.Call
Gets a signature for this call.
getSignatureFromJoinPoint(JoinPoint) - Method in class org.virtualmock.aspect.aspectj.AspectjAspectUtils
Uses information obtained from a JoinPoint to build a Signature.
getSignatureFromMethodJoinPoint(MethodJoinPoint) - Method in class org.virtualmock.aspect.aspectwerkz.AspectwerkzAspectUtils
Uses information obtained from a MethodJoinPoint to build a Signature.
getSignatureSequence() - Method in class org.virtualmock.call.Call
Accessor.
getSignatures() - Method in class org.virtualmock.call.CallQueue
Get the signatures for all the calls in the queue, in the same order as the calls.
getString(String) - Method in class org.virtualmock.resource.ResourceManager
Gets a string from the resource file.
getString(String, String[]) - Method in class org.virtualmock.resource.ResourceManager
Gets a string from the resource file, substituting arguments.
getString(String, String, String) - Method in class org.virtualmock.resource.ResourceManager
Gets a string from the resource file, substituting arguments.
getString(String, String, String, String) - Method in class org.virtualmock.resource.ResourceManager
Gets a string from the resource file, substituting arguments.
getString(String, String, String, String, String) - Method in class org.virtualmock.resource.ResourceManager
Gets a string from the resource file, substituting arguments.
getString(String, String) - Method in class org.virtualmock.resource.ResourceManager
Gets a string from the resource file, substituting an argument.
getTestCase() - Method in class org.virtualmock.VM
Gets the TestCase class.
getTestCase() - Method in class org.virtualmock.call.CallManager
Get the TestCase being executed.
getThrowable() - Method in class org.virtualmock.call.Call
Accessor.
getUninvokedCalls() - Method in class org.virtualmock.call.CallManager
Gets all uninvoked calls from the RecordedCallQueue.
getUninvokedCalls() - Method in class org.virtualmock.call.RecordedCallQueue
Gets all uninvoked calls from the RecordedCallQueue.
getVMConfig() - Method in class org.virtualmock.configuration.ConfigDigester
Returns the VMConfig that was parsed when this ConfigDigester was constructed.
getVerificationCount() - Method in class org.virtualmock.call.InvokedCall
DOCUMENT ME! (Method)
getViolationMessage(RecordedCall) - Method in class org.virtualmock.rule.AllRecordedCallsMustBeInvokedRule
Get a single violation message.
getViolationMessages() - Method in class org.virtualmock.rule.AllRecordedCallsMustBeInvokedRule
Gets violation messages for this rule.
getViolationMessages() - Method in interface org.virtualmock.rule.Rule
Get messages (if any) resulting from the violation of this rule.

H

hasArguments() - Method in class org.virtualmock.call.Call
Returns true if the call has arguments defined.
hasCallWithMatchingSignature(Signature) - Method in class org.virtualmock.call.CallQueue
Indicates if the queue has a call matching the specified signature.
hasCallWithMatchingSignature(Call) - Method in class org.virtualmock.call.CallQueue
Indicates if the queue has a call matching the specified signature.
hasMatchingArgs(Call) - Method in class org.virtualmock.call.RecordedCall
Performs matching of all arguments on this Call to the specified Call, based on the ArgMatchers that are defined for this call.
hasMatchingSignature(Call) - Method in class org.virtualmock.call.Call
Returns true if the specified call has a signature which matches the signature of this call.
hasMatchingSignature(Signature) - Method in class org.virtualmock.call.Call
Returns true if the specified signature matches the signature of this call.
hasReturnValue() - Method in class org.virtualmock.call.Call
Returns true if the call has a return value defined.
hasUnlimitedInvocations() - Method in class org.virtualmock.call.RecordedCall
Return true if this call has unlimited invocations set.
hashArguments(Class[], Object[]) - Method in class org.virtualmock.aspect.AspectUtils
Transform two arrays of matching argument types and argument values into a hashtable of corresponding key/value pairs, with the argumentType as the key.
hashCode() - Method in class org.virtualmock.call.Signature
Return hashCode for this Signature.

I

IGNORE - Static variable in interface org.virtualmock.rule.Rule
Constant for the IGNORE enforcement level.
InvokedCall - class org.virtualmock.call.InvokedCall.
Represents a method invocation of an invoked call (which was invoked by the Class Under Test).
InvokedCall(Signature) - Constructor for class org.virtualmock.call.InvokedCall
Creates a new InvokedCall object with no args, return value, or exception.
InvokedCall(Signature, Object[]) - Constructor for class org.virtualmock.call.InvokedCall
Creates a new InvokedCall object.
InvokedCall(Signature, Object[], Object) - Constructor for class org.virtualmock.call.InvokedCall
Creates a new InvokedCall object which has a return value.
InvokedCall(Signature, Object[], Throwable) - Constructor for class org.virtualmock.call.InvokedCall
Creates a new InvokedCall object which throws an exception.
InvokedCallQueue - class org.virtualmock.call.InvokedCallQueue.
A CallQueue which has support for tracking information specific to Calls which were invoked by the class under test.
InvokedCallQueue() - Constructor for class org.virtualmock.call.InvokedCallQueue
 
incrementInvocationCount() - Method in class org.virtualmock.call.RecordedCall
Increments the internal invocation count for this call by one.
incrementVerificationCount() - Method in class org.virtualmock.call.InvokedCall
Increments the internal verification count for this call by one.
indicateCalled(InvokedCall) - Method in class org.virtualmock.call.CallManager
This method is called from the advice to indicate when a call is invoked.
init() - Method in class org.virtualmock.call.CallManager
Initializes the CallManager by clearing the RecordedCallQueue and InvokedCallQueue, and setting phase to RECORD_PHASE.
initialize() - Method in class org.virtualmock.util.Toolbox
Performs any custom initialization of the Toolbox.
isAssignableFrom(Signature) - Method in class org.virtualmock.call.Signature
This method is similar to Java's Class.isAssignableFrom() method, but it checks the class type, method name and each individual argument type for this Signature.
isAssignableToPrimitiveWrapper(Class) - Method in class org.virtualmock.util.PrimitiveUtils
Returns true if the specified type is assignable to any primitive type.
isClassExcluded(Class) - Method in class org.virtualmock.aspect.AspectUtils
Returns true if the specified class should be excluded from VirtualMock processing.
isClassMocked(String) - Method in class org.virtualmock.call.CallManager
Indicates if calls are being mocked for the specified class.
isInvocable() - Method in class org.virtualmock.call.RecordedCall
Indicates if this call is invocable.
isInvoked() - Method in class org.virtualmock.call.RecordedCall
Returns true if invocation count is greater than zero.
isJoinPointExcluded(JoinPoint.StaticPart) - Method in class org.virtualmock.aspect.aspectj.AspectjAspectUtils
Determines if the joinpoint defined by the specified JoinPoint.StaticPart has been dynamically excluded.
isJoinPointExcluded(Class) - Method in class org.virtualmock.aspect.aspectwerkz.AspectwerkzAspectUtils
Determines if the joinpoint defined by the specified Class and Method has been dynamically excluded.
isPlaybackPhase() - Method in class org.virtualmock.call.CallManager
Indicates if VirtualMock is in the Playback phase.
isRecordPhase() - Method in class org.virtualmock.call.CallManager
Indicates if VirtualMock is in the Record phase.
isReturnTypePrimitive() - Method in class org.virtualmock.call.Call
Returns true if the return type represents a primitive.
isReturnTypePrimitive() - Method in class org.virtualmock.call.Signature
Returns true is return type is primitive.
isUseAspectJ() - Method in class org.virtualmock.taskdef.VMTransformTask
Returns flag which indicates whether AspectJ should be used to weave.
isUseAspectWerkz() - Method in class org.virtualmock.taskdef.VMTransformTask
Returns the flag which indicates whether AspectWerkz should be used to weave.
isVerified() - Method in class org.virtualmock.call.InvokedCall
returns true if verification count is greater than zero.
isVerifyPhase() - Method in class org.virtualmock.call.CallManager
Indicates if VirtualMock is in the Verify phase.

M

MatcherUtils - class org.virtualmock.matcher.MatcherUtils.
Common utilities used by ArgMatcher implementations.
MatcherUtils() - Constructor for class org.virtualmock.matcher.MatcherUtils
 
MethodInterceptorAdvice - class org.virtualmock.aspect.aspectwerkz.MethodInterceptorAdvice.
This is the advice which intercepts all method calls (except those which are excluded through the pointcuts) It then programatically determines if it should process the call, or ignore it and let it proceed.
MethodInterceptorAdvice() - Constructor for class org.virtualmock.aspect.aspectwerkz.MethodInterceptorAdvice
 
matches(Call) - Method in class org.virtualmock.call.RecordedCall
Returns true if hasMatchingSignature() and hasMatchingArgs() both return true.
matches(Object, Object) - Method in class org.virtualmock.matcher.AlwaysMatcher
Returns true always.
matches(Object, Object) - Method in interface org.virtualmock.matcher.ArgMatcher
The method that VirtualMock will call to perform matching of an argument.
matches(Object, Object) - Method in class org.virtualmock.matcher.EqualsMatcher
Returns true if expectedArgument.equals(actualArgument).

O

org.virtualmock - package org.virtualmock
This is the top-level package for VirtualMock.
org.virtualmock.aspect - package org.virtualmock.aspect
This package contains common utility methods used by both AspectJ and AspectWerkz aspects.
org.virtualmock.aspect.aspectj - package org.virtualmock.aspect.aspectj
This package contains utility methods used by the AspectJ aspects.
org.virtualmock.aspect.aspectwerkz - package org.virtualmock.aspect.aspectwerkz
This package contains the AspectWerkz aspects and the utility classes which they use.
org.virtualmock.call - package org.virtualmock.call
This package contains classes related to Calls, or method invocations.
org.virtualmock.configuration - package org.virtualmock.configuration
This package contains classes related reading and processing VirtualMock configuration files.
org.virtualmock.matcher - package org.virtualmock.matcher
This package contains classes related to matching arguments.
org.virtualmock.resource - package org.virtualmock.resource
This package contains classes related to reading localized resource strings.
org.virtualmock.rule - package org.virtualmock.rule
This package contains classes related to Rules.
org.virtualmock.taskdef - package org.virtualmock.taskdef
This package contains classes related to the VirtualMock Ant tasks.
org.virtualmock.util - package org.virtualmock.util
This package contains common utility classes.
org.virtualmock.verify - package org.virtualmock.verify
This package contains classes related to verification.

P

PLAYBACK_PHASE - Static variable in class org.virtualmock.Constants
Constant representing the playback phase.
PrimitiveUtils - class org.virtualmock.util.PrimitiveUtils.
Provides utilities for working with primitives.
PrimitiveUtils() - Constructor for class org.virtualmock.util.PrimitiveUtils
 
parse() - Method in class org.virtualmock.configuration.ExcludedClassesParser
The parse method of this Parser.
parse() - Method in class org.virtualmock.rule.RuleParser
The parse method of this Parser.
performAspectjPreProcessing() - Method in class org.virtualmock.taskdef.VMTransformTask
Performs preprocessing that is specific to AspectJ.
performAspectwerkzPreProcessing(File) - Method in class org.virtualmock.taskdef.VMTransformTask
Performs preprocessing that is specific to AspectWerkz.
performParse() - Method in class org.virtualmock.configuration.ExcludedClassesParser
Perform the actual parsing.
performParse(InputStream) - Method in class org.virtualmock.rule.RuleParser
Perform the actual parsing.
playbackCalls() - Method in class org.virtualmock.VM
Sets VirtualMock into Playback Mode (defaulting to unordered playback type).
playbackMockCall(InvokedCall, RecordedCall) - Method in class org.virtualmock.aspect.AspectUtils
Performs the logic of playing back a recorded mock call.
proceed(MethodJoinPoint) - Method in class org.virtualmock.aspect.aspectwerkz.DynamicExcludeJoinPointController
The overridden proceed method for the JoinPointController.

R

RECORD_PHASE - Static variable in class org.virtualmock.Constants
Constant representing the record phase.
RULES_CONFIG_PATH - Static variable in class org.virtualmock.rule.RuleParser
constant for rules filename.
RULE_FAIL_ALL_RECORDED_CALLS_MUST_BE_INVOKED - Static variable in class org.virtualmock.resource.ResourceKeys
Key for rule failure message.
RecordedCall - class org.virtualmock.call.RecordedCall.
Represents a method invocation of a recorded mock call.
RecordedCall(Signature, Object[]) - Constructor for class org.virtualmock.call.RecordedCall
Creates a new RecordedCall object.
RecordedCall(Signature) - Constructor for class org.virtualmock.call.RecordedCall
Creates a new RecordedCall object.
RecordedCall(Signature, Object[], Object) - Constructor for class org.virtualmock.call.RecordedCall
Creates a new RecordedCall object which has a return value.
RecordedCall(Signature, Object[], Throwable) - Constructor for class org.virtualmock.call.RecordedCall
Creates a new RecordedCall object which throws an exception.
RecordedCallQueue - class org.virtualmock.call.RecordedCallQueue.
A CallQueue which has support for tracking information specific to recorded Calls.
RecordedCallQueue() - Constructor for class org.virtualmock.call.RecordedCallQueue
 
ResourceKeys - class org.virtualmock.resource.ResourceKeys.
Class to contain constants for resource keys.
ResourceKeys() - Constructor for class org.virtualmock.resource.ResourceKeys
 
ResourceManager - class org.virtualmock.resource.ResourceManager.
Class to manage access to resource files.
ResourceManager(String, String, String) - Constructor for class org.virtualmock.resource.ResourceManager
Constructor which takes resource file name, language, and country.
Rule - interface org.virtualmock.rule.Rule.
An interface the all VirtualMock Rules must implement.
RuleConfig - class org.virtualmock.configuration.RuleConfig.
Configuration for a VirtualMock Rule.
RuleConfig() - Constructor for class org.virtualmock.configuration.RuleConfig
 
RuleContentHandler - class org.virtualmock.rule.RuleContentHandler.
DOCUMENT ME! (Class)
RuleContentHandler() - Constructor for class org.virtualmock.rule.RuleContentHandler
 
RuleHandler - class org.virtualmock.rule.RuleHandler.
DefaultHandler for VirtualMock Rules.
RuleHandler() - Constructor for class org.virtualmock.rule.RuleHandler
 
RuleManager - class org.virtualmock.rule.RuleManager.
Class which handles evaluation and reporting of rules and rule violations.
RuleManager(List, ResourceManager) - Constructor for class org.virtualmock.rule.RuleManager
Creates a new RuleManager object.
RuleParser - class org.virtualmock.rule.RuleParser.
Parses VirtualMock configuration file.
RuleParser() - Constructor for class org.virtualmock.rule.RuleParser
 
recordArgMatcher(ArgMatcher) - Method in class org.virtualmock.VM
Define an ArgMatcher for the last recorded call, which should only have a single argument.
recordArgMatchers(ArgMatcher, ArgMatcher) - Method in class org.virtualmock.VM
Define an ArgMatcher for the last recorded call, which should only have a two arguments.
recordArgMatchers(ArgMatcher, ArgMatcher, ArgMatcher) - Method in class org.virtualmock.VM
Define an ArgMatcher for the last recorded call, which should only have a three arguments.
recordArgMatchers(ArgMatcher[]) - Method in class org.virtualmock.VM
Define an ArgMatcher for the last recorded call, which should have the same number of arguments as there are elements in the array that is passed in.
recordArgMatchers(ArgMatcher[]) - Method in class org.virtualmock.call.CallManager
Define the ArgMatchers for the last recorded call, which should have the same number of arguments as elements in the array.
recordCall(Signature, Object[]) - Method in class org.virtualmock.call.CallManager
Records a call which will be mocked.
recordException(Throwable) - Method in class org.virtualmock.VM
Specifies that a throwable will be thrown by the last recorded call.
recordReturnValue(Object) - Method in class org.virtualmock.VM
Specifies the return value for the last recorded call.
recordReturnValue(int) - Method in class org.virtualmock.VM
Specifies the int return value for the last recorded call.
recordReturnValue(float) - Method in class org.virtualmock.VM
Specifies the float return value for the last recorded call.
recordReturnValue(double) - Method in class org.virtualmock.VM
Specifies the double return value for the last recorded call.
recordReturnValue(byte) - Method in class org.virtualmock.VM
Specifies the byte return value for the last recorded call.
recordReturnValue(long) - Method in class org.virtualmock.VM
Specifies the long return value for the last recorded call.
recordReturnValue(short) - Method in class org.virtualmock.VM
Specifies the short return value for the last recorded call.
recordReturnValue(boolean) - Method in class org.virtualmock.VM
Specifies the boolean return value for the last recorded call.
recordReturnValue(char) - Method in class org.virtualmock.VM
Specifies the char return value for the last recorded call.
recordReturnValueForLastCall(Object) - Method in class org.virtualmock.call.CallManager
Records a return value for the most recently recorded call.
recordThrowableForLastCall(Throwable) - Method in class org.virtualmock.call.CallManager
Records a throwable to be thrown for the most recently recorded call.
registerComponent(String, Object) - Static method in class org.virtualmock.util.Toolbox
Registers a component in the Toolbox.

S

Signature - class org.virtualmock.call.Signature.
The signature for a method call, representing the class, method name, and classes of the arguments.
Signature(Class, Class, String, Class[]) - Constructor for class org.virtualmock.call.Signature
Creates a new Signature object with a return value and arguments.
Signature(Class, Class, String) - Constructor for class org.virtualmock.call.Signature
Creates a new Signature object with a return value but no arguments.
Signature(Class, String, Class[]) - Constructor for class org.virtualmock.call.Signature
Creates a new Signature object with no return value but with arguments.
Signature(Class, String) - Constructor for class org.virtualmock.call.Signature
Creates a new Signature object with no return value or arguments.
setArgMatchers(ArgMatcher[]) - Method in class org.virtualmock.call.RecordedCall
Sets the ArgMatchers that are defined for this call.
setAspectWerkzClassname(String) - Method in class org.virtualmock.taskdef.VMTransformTask
Sets the classname for the AspectWerkz compiler.
setAspectjClassname(String) - Method in class org.virtualmock.taskdef.VMTransformTask
Sets the classname for the AspectJ compiler.
setAspectpath(String) - Method in class org.virtualmock.taskdef.VMTransformTask
Sets jar containing VirtualMock aspect classes to weave.
setAspectpathJarPrefix(String) - Method in class org.virtualmock.taskdef.VMTransformTask
Sets string which will be used to search the classpath for the aspectpath jar (using String.indexOf(String)).
setClasspath(Path) - Method in class org.virtualmock.taskdef.VMTransformTask
Sets the classpath to use.
setCommandline(CommandlineJava) - Method in class org.virtualmock.taskdef.VMTransformTask
Sets the command line.
setDefaultAspectPath() - Method in class org.virtualmock.taskdef.VMTransformTask
If aspectpath was not set by user, search the classpath for the jar containing the virtualmock aspects and set it in the aspectpath variable.
setInjars(String) - Method in class org.virtualmock.taskdef.VMTransformTask
Setter for the input jars.
setOutjar(String) - Method in class org.virtualmock.taskdef.VMTransformTask
Sets the output jar.
setPhase(int) - Method in class org.virtualmock.call.CallManager
Set the phase that VirtualMock is currently in.
setReturnValue(Object) - Method in class org.virtualmock.call.Call
Accessor.
setRuleType(String) - Method in class org.virtualmock.configuration.RuleConfig
Accessor.
setSignatureSequence(int) - Method in class org.virtualmock.call.Call
Accessor.
setTestCase(TestCase) - Method in class org.virtualmock.VM
Sets the TestCase class.
setTestCase(TestCase) - Method in class org.virtualmock.call.CallManager
Set the TestCase being executed.
setThrowable(Throwable) - Method in class org.virtualmock.call.Call
Accessor.
setUnlimitedInvocations(boolean) - Method in class org.virtualmock.call.RecordedCall
Set that this call can be invoked an unlimited number of times.
setUp() - Method in class org.virtualmock.configuration.ExcludedClassesParserDataTest
Set up the test
setUseAspectJ(boolean) - Method in class org.virtualmock.taskdef.VMTransformTask
Indicates whether AspectJ should be used as the Aspect-Oriented Programming (AOP) framework.
setUseAspectWerkz(boolean) - Method in class org.virtualmock.taskdef.VMTransformTask
Sets the flag which indicates whether AspectWerkz should be used to weave.
size() - Method in class org.virtualmock.call.CallQueue
Get the number of calls in the queue.

T

Toolbox - class org.virtualmock.util.Toolbox.
A singleton which manages single instances of other application components.
Toolbox() - Constructor for class org.virtualmock.util.Toolbox
Creates a new Toolbox object.
tearDown() - Method in class org.virtualmock.configuration.ExcludedClassesParserDataTest
Tear down the test.
testCanParseSingleRuleConfig() - Method in class org.virtualmock.configuration.ExcludedClassesParserDataTest
Tests that a single RuleConfig can be parsed out of the InputStream.
testSampleInputStreamIsValid() - Method in class org.virtualmock.configuration.ExcludedClassesParserDataTest
Tests that the sample InputStream can be read.
throwAsRuntime(Throwable) - Method in class org.virtualmock.aspect.aspectj.AspectjAspectUtils
invokes the custom BCEL-modified class to throw any Throwable as a RuntimeException.
toString() - Method in class org.virtualmock.call.Call
Creates a string representation of this Call.
toString() - Method in class org.virtualmock.call.Signature
Represents this signature as a String.
toStringWithoutReturnType() - Method in class org.virtualmock.call.Signature
Returns the representation of the Signature as a string, with the return type omitted.

U

UnitTestInterceptorAdvice - class org.virtualmock.aspect.aspectwerkz.UnitTestInterceptorAdvice.
This is the advice which intercepts all caller-side method calls which are made from the unit test class to the class under test (except those which are excluded through the pointcuts).
UnitTestInterceptorAdvice() - Constructor for class org.virtualmock.aspect.aspectwerkz.UnitTestInterceptorAdvice
 

V

VERIFY_PHASE - Static variable in class org.virtualmock.Constants
Constant representing the verify phase.
VM - class org.virtualmock.VM.
The main interface to the VirtualMock runtime system.
VM(CallManager, VerificationManager) - Constructor for class org.virtualmock.VM
Creates a new VM object.
VMConfig - class org.virtualmock.configuration.VMConfig.
Class which represents the configuration for a Virtualmock runtime environment.
VMConfig() - Constructor for class org.virtualmock.configuration.VMConfig
Creates a new VMConfig object.
VMFactory - class org.virtualmock.VMFactory.
A Factory to create instances of VM.
VMFactory() - Constructor for class org.virtualmock.VMFactory
 
VMTransformTask - class org.virtualmock.taskdef.VMTransformTask.
Task to perform transformation of class or jar files to be executed with VirtualMock.
VMTransformTask() - Constructor for class org.virtualmock.taskdef.VMTransformTask
Creates a new VMTransformTask object.
VMUnitTask - class org.virtualmock.taskdef.VMUnitTask.
Custom Ant task to execute JUnit tests in VirtualMock environment.
VMUnitTask() - Constructor for class org.virtualmock.taskdef.VMUnitTask
Overridden constructor from superclass.
VerificationManager - class org.virtualmock.verify.VerificationManager.
Manages verification of calls and arguments.
VerificationManager(RuleManager) - Constructor for class org.virtualmock.verify.VerificationManager
Creates a new VerificationManager object.
validateArguments(Object[]) - Method in class org.virtualmock.call.Call
Validates that the argument values match the argument types in the throwable, and throws an IllegalArgumentException if they don't.
validateReturnValue(Object) - Method in class org.virtualmock.call.Call
Validates that the specified Object is a valid return value.
verify() - Method in class org.virtualmock.VM
Causes all verify-phase verifications to be performed.
verify() - Method in class org.virtualmock.verify.VerificationManager
Performs verification all recorded calls.

W

WARN - Static variable in interface org.virtualmock.rule.Rule
Constant for the WARN enforcement level.

A C D E F G H I M O P R S T U V W

Copyright © 2003-2005 Virtual Mock. All Rights Reserved.