[ This file is autogenerated from apexdoc ]
ISTEST
Group modules/enterprise
Fields
public isMatching → Boolean
Methods
public static List<AqIArgumentMatcher> getAndClearMatchers(Integer expectedSize)
Used internally by the mocking framework, you shouldn't need to call this method directly. Copies the registered matchers, and then switches matching mode off.
Parameters
| Param | Description |
|---|
expectedSize | The expected number of matchers to be returned. If this does not match the actual value an expection is thrown. |
Returns
| Type | Description |
|---|
List<AqIArgumentMatcher> | List<AqIArgumentMatcher> The registered matchers, collected while in matching mode. |
public static Boolean matchesAllArgs(AqMethodArguments invokedMethodArguments, List<AqIArgumentMatcher> targetMatchers)
Used internally by the mocking framework, you shouldn't need to call this method directly. Compares all supplied method arg values to the supplied target matchers.
Parameters
| Param | Description |
|---|
invokedMethodArguments | The arguments supplied when the method was invoked |
targetMatchers | The matchers the arguments need to be compared with |
Returns
| Type | Description |
|---|
Boolean | Boolean True if all arg values satisfy all of the supplied matchers. |
public static Object isNull()
Registers a matcher which will check if the method is called with an arg that matches isNull
Returns
| Type | Description |
|---|
Object | Object A dummy object of the correct type, so that when called inline as part of a method call, the correct method is invoked. (You may need to cast down to your specific object type) |
public static Object eq(Object toMatch)
Registers a matcher which will check if the method is called with an arg that matches eq
Parameters
| Param | Description |
|---|
toMatch | The Object to be compared |
Returns
| Type | Description |
|---|
Object | Object A dummy object of the correct type, so that when called inline as part of a method call, the correct method is invoked. (You may need to cast down to your specific object type) |
public static Object matches(AqIArgumentMatcher matcher)
Registers a matcher which will be stubbed/verified against.
Parameters
| Param | Description |
|---|
matcher | The matcher that needs to be compared |
Returns
| Type | Description |
|---|
Object | Object Always returns null. This can then be cast into the correct arg type so that the right method is called on the mock objects. |