Skip navigation links
A C D E F G I J L M N O P R S T U V W 

A

any(MatchFunction) - Static method in class com.alibaba.testable.core.matcher.InvokeMatcher
 
any() - Static method in class com.alibaba.testable.core.matcher.InvokeMatcher
 
any(Class<?>) - Static method in class com.alibaba.testable.core.matcher.InvokeMatcher
 
anyArray() - Static method in class com.alibaba.testable.core.matcher.InvokeMatcher
 
anyArrayOf(Class<?>) - Static method in class com.alibaba.testable.core.matcher.InvokeMatcher
 
anyBoolean() - Static method in class com.alibaba.testable.core.matcher.InvokeMatcher
 
anyByte() - Static method in class com.alibaba.testable.core.matcher.InvokeMatcher
 
anyChar() - Static method in class com.alibaba.testable.core.matcher.InvokeMatcher
 
anyCollection() - Static method in class com.alibaba.testable.core.matcher.InvokeMatcher
 
anyCollectionOf(Class<?>) - Static method in class com.alibaba.testable.core.matcher.InvokeMatcher
 
anyDouble() - Static method in class com.alibaba.testable.core.matcher.InvokeMatcher
 
anyFloat() - Static method in class com.alibaba.testable.core.matcher.InvokeMatcher
 
anyInt() - Static method in class com.alibaba.testable.core.matcher.InvokeMatcher
 
anyIterable() - Static method in class com.alibaba.testable.core.matcher.InvokeMatcher
 
anyIterableOf(Class<?>) - Static method in class com.alibaba.testable.core.matcher.InvokeMatcher
 
anyList() - Static method in class com.alibaba.testable.core.matcher.InvokeMatcher
 
anyListOf(Class<?>) - Static method in class com.alibaba.testable.core.matcher.InvokeMatcher
 
anyLong() - Static method in class com.alibaba.testable.core.matcher.InvokeMatcher
 
anyMap() - Static method in class com.alibaba.testable.core.matcher.InvokeMatcher
 
anyMapOf(Class<?>, Class<?>) - Static method in class com.alibaba.testable.core.matcher.InvokeMatcher
 
anyNumber() - Static method in class com.alibaba.testable.core.matcher.InvokeMatcher
 
anySet() - Static method in class com.alibaba.testable.core.matcher.InvokeMatcher
 
anySetOf(Class<?>) - Static method in class com.alibaba.testable.core.matcher.InvokeMatcher
 
anyShort() - Static method in class com.alibaba.testable.core.matcher.InvokeMatcher
 
anyString() - Static method in class com.alibaba.testable.core.matcher.InvokeMatcher
 
anyTypeOf(Class<?>...) - Static method in class com.alibaba.testable.core.matcher.InvokeMatcher
 

C

check(Object) - Method in interface com.alibaba.testable.core.function.MatchFunction
Judge whether real argument value match exception
ClassConstructionException - Exception in com.alibaba.testable.core.exception
 
ClassConstructionException(String) - Constructor for exception com.alibaba.testable.core.exception.ClassConstructionException
 
ClassConstructionException(String, Throwable) - Constructor for exception com.alibaba.testable.core.exception.ClassConstructionException
 
ClassType - Enum in com.alibaba.testable.core.model
 
clean() - Static method in class com.alibaba.testable.core.util.MockContextUtil
Clean up mock context should be invoked at the end of each test case execution
cleanup() - Static method in class com.alibaba.testable.core.util.LogUtil
 
CollectionUtil - Class in com.alibaba.testable.core.util
 
CollectionUtil() - Constructor for class com.alibaba.testable.core.util.CollectionUtil
 
com.alibaba.testable.core.annotation - package com.alibaba.testable.core.annotation
 
com.alibaba.testable.core.constant - package com.alibaba.testable.core.constant
 
com.alibaba.testable.core.error - package com.alibaba.testable.core.error
 
com.alibaba.testable.core.exception - package com.alibaba.testable.core.exception
 
com.alibaba.testable.core.function - package com.alibaba.testable.core.function
 
com.alibaba.testable.core.matcher - package com.alibaba.testable.core.matcher
 
com.alibaba.testable.core.model - package com.alibaba.testable.core.model
 
com.alibaba.testable.core.tool - package com.alibaba.testable.core.tool
 
com.alibaba.testable.core.util - package com.alibaba.testable.core.util
 
COMMA - Static variable in class com.alibaba.testable.core.constant.ConstPool
 
ConstPool - Class in com.alibaba.testable.core.constant
 
ConstPool() - Constructor for class com.alibaba.testable.core.constant.ConstPool
 
construct(Class<?>, Object...) - Static method in class com.alibaba.testable.core.tool.PrivateAccessor
访问任意类的私有构造方法
CONSTRUCTOR - Static variable in class com.alibaba.testable.core.constant.ConstPool
Name of the constructor method
contains(String) - Static method in class com.alibaba.testable.core.matcher.InvokeMatcher
 
context - Static variable in class com.alibaba.testable.core.util.MockContextUtil
Container to store context information of each test case
createFolder(String) - Static method in class com.alibaba.testable.core.util.PathUtil
Create folder recursively
currentSourceMethodName() - Static method in class com.alibaba.testable.core.util.TestableUtil
Get the last visit method in source file

D

diagnose(String, Object...) - Static method in class com.alibaba.testable.core.util.LogUtil
 
diagnose(int, String, Object...) - Static method in class com.alibaba.testable.core.util.LogUtil
 
DOLLAR - Static variable in class com.alibaba.testable.core.constant.ConstPool
 
DOT - Static variable in class com.alibaba.testable.core.constant.ConstPool
Common symbols
DumpTo - Annotation Type in com.alibaba.testable.core.annotation
Dump byte code for single class

E

endsWith(String) - Static method in class com.alibaba.testable.core.matcher.InvokeMatcher
 
eq(Object) - Static method in class com.alibaba.testable.core.matcher.InvokeMatcher
 
error(String, Object...) - Static method in class com.alibaba.testable.core.util.LogUtil
 

F

FixSizeMap<K,V> - Class in com.alibaba.testable.core.util
 
FixSizeMap(int) - Constructor for class com.alibaba.testable.core.util.FixSizeMap
 

G

get(Object, String) - Static method in class com.alibaba.testable.core.tool.OmniAccessor
获取所有符合搜索路径的成员
get(Object, String) - Static method in class com.alibaba.testable.core.tool.PrivateAccessor
读取任意类的私有字段
get(K) - Method in class com.alibaba.testable.core.util.FixSizeMap
 
get(Object) - Method in class com.alibaba.testable.core.util.UnnullableMap
 
getAllFields(Class<?>) - Static method in class com.alibaba.testable.core.util.TypeUtil
get all field from class and its parents
getClassesFromObjects(Object[]) - Static method in class com.alibaba.testable.core.util.TypeUtil
get classes of parameter objects
getConstructorByParameterTypes(Class<?>, Class<?>[]) - Static method in class com.alibaba.testable.core.util.TypeUtil
get constructor by parameter matching
getFieldByName(Class<?>, String) - Static method in class com.alibaba.testable.core.util.TypeUtil
get specified field from class or its parents
getFirst(Object, String) - Static method in class com.alibaba.testable.core.tool.OmniAccessor
获取第一个符合搜索路径的成员
getFolder(String) - Static method in class com.alibaba.testable.core.util.PathUtil
Get parent folder of specified path
getMethodByNameAndParameterTypes(Class<?>, String, Class<?>[]) - Static method in class com.alibaba.testable.core.util.TypeUtil
get method by name and parameter matching
getOrElse(K, V) - Method in class com.alibaba.testable.core.util.FixSizeMap
 
getOrElse(Object, V) - Method in class com.alibaba.testable.core.util.UnnullableMap
 
getStatic(Class<?>, String) - Static method in class com.alibaba.testable.core.tool.PrivateAccessor
读取任意类的静态私有字段

I

INDEX_OF_MOCK_CLASS - Static variable in class com.alibaba.testable.core.util.MockAssociationUtil
[0]Thread → [1]MockAssociationUtil → [2]MockClass
INDEX_OF_TEST_CLASS - Static variable in class com.alibaba.testable.core.util.InvokeRecordUtil
[0]Thread → [1]TestableUtil/TestableTool → [2]TestClass
INDEX_OF_TEST_CLASS - Static variable in class com.alibaba.testable.core.util.MockContextUtil
[0]Thread → [1]MockContextUtil → [2]TestClass
init() - Static method in class com.alibaba.testable.core.util.MockContextUtil
Initialize mock context should be invoked at the beginning of each test case method
inOrder - Variable in class com.alibaba.testable.core.model.Verification
 
invoke(Object, String, Object...) - Static method in class com.alibaba.testable.core.tool.PrivateAccessor
调用任意类的私有方法
InvokeMatcher - Class in com.alibaba.testable.core.matcher
 
invokeOrigin(Class<?>, String, Object...) - Static method in class com.alibaba.testable.core.util.MockAssociationUtil
Note: this method will be invoked in transformed byte code Invoke original method when mock class is not associated with current test case
invokeRecord - Variable in class com.alibaba.testable.core.model.MockContext
 
InvokeRecordUtil - Class in com.alibaba.testable.core.util
 
InvokeRecordUtil() - Constructor for class com.alibaba.testable.core.util.InvokeRecordUtil
 
invokeStatic(Class<?>, String, Object...) - Static method in class com.alibaba.testable.core.tool.PrivateAccessor
调用任意类的静态私有方法
InvokeVerifier - Class in com.alibaba.testable.core.matcher
 
isAssociated() - Static method in class com.alibaba.testable.core.util.MockAssociationUtil
Note: this method will be invoked in transformed byte code Check whether current mock method is invoked from its associated test class should be invoked in mock method
isBasicType(Class<?>) - Static method in class com.alibaba.testable.core.util.TypeUtil
whether class is a system basic type
isNull() - Static method in class com.alibaba.testable.core.matcher.InvokeMatcher
 
isVerboseEnabled() - Static method in class com.alibaba.testable.core.util.LogUtil
a pre-check method for reduce verbose parameter calculation

J

join(Collection<?>, String) - Static method in class com.alibaba.testable.core.util.CollectionUtil
 

L

level - Variable in enum com.alibaba.testable.core.model.LogLevel
 
LogLevel - Enum in com.alibaba.testable.core.model
 
LogUtil - Class in com.alibaba.testable.core.util
 
LogUtil() - Constructor for class com.alibaba.testable.core.util.LogUtil
 

M

matches(String) - Static method in class com.alibaba.testable.core.matcher.InvokeMatcher
 
MatchFunction - Interface in com.alibaba.testable.core.function
 
matchFunction - Variable in class com.alibaba.testable.core.matcher.InvokeMatcher
 
MemberAccessException - Exception in com.alibaba.testable.core.exception
 
MemberAccessException(String) - Constructor for exception com.alibaba.testable.core.exception.MemberAccessException
 
MemberAccessException(String, Throwable) - Constructor for exception com.alibaba.testable.core.exception.MemberAccessException
 
MOCK_CONTEXT - Static variable in class com.alibaba.testable.core.tool.TestableTool
Inject extra mock parameters
MOCK_POSTFIX - Static variable in class com.alibaba.testable.core.constant.ConstPool
 
MockAssociationUtil - Class in com.alibaba.testable.core.util
 
MockAssociationUtil() - Constructor for class com.alibaba.testable.core.util.MockAssociationUtil
 
MockConstructor - Annotation Type in com.alibaba.testable.core.annotation
Mark method as mock constructor
MockContext - Class in com.alibaba.testable.core.model
 
MockContext(String, String) - Constructor for class com.alibaba.testable.core.model.MockContext
 
MockContextUtil - Class in com.alibaba.testable.core.util
 
MockContextUtil() - Constructor for class com.alibaba.testable.core.util.MockContextUtil
 
MockDiagnose - Annotation Type in com.alibaba.testable.core.annotation
Set extra mock parameter to test class
MockMethod - Annotation Type in com.alibaba.testable.core.annotation
Mark method as mock method
MockScope - Enum in com.alibaba.testable.core.model
 
mockToTests - Static variable in class com.alibaba.testable.core.util.MockAssociationUtil
Mock class referred by @MockWith annotation to list of its test classes MockClassName (dot-separated) → Set of associated [TestClassNames (dot-separated)]
MockWith - Annotation Type in com.alibaba.testable.core.annotation
Set extra mock parameter to test class

N

newArray(Class<T>, int) - Static method in class com.alibaba.testable.core.tool.OmniConstructor
快速创建任意指定类型的对象数组
newInstance(Class<T>) - Static method in class com.alibaba.testable.core.tool.OmniConstructor
快速创建任意指定类型的测试对象
NoSuchMemberError - Error in com.alibaba.testable.core.error
 
NoSuchMemberError(String) - Constructor for error com.alibaba.testable.core.error.NoSuchMemberError
 
notNull() - Static method in class com.alibaba.testable.core.matcher.InvokeMatcher
 
nullable(Class<?>) - Static method in class com.alibaba.testable.core.matcher.InvokeMatcher
 

O

of(String) - Static method in enum com.alibaba.testable.core.model.MockScope
 
of(T) - Static method in class com.alibaba.testable.core.util.UnnullableMap
 
OmniAccessor - Class in com.alibaba.testable.core.tool
 
OmniConstructor - Class in com.alibaba.testable.core.tool
 

P

parameters - Variable in class com.alibaba.testable.core.model.MockContext
 
parameters - Variable in class com.alibaba.testable.core.model.Verification
 
parameters() - Static method in class com.alibaba.testable.core.util.MockContextUtil
 
PathUtil - Class in com.alibaba.testable.core.util
 
PathUtil() - Constructor for class com.alibaba.testable.core.util.PathUtil
 
previousStackLocation() - Static method in class com.alibaba.testable.core.util.TestableUtil
Get file name and line number of where current method was called
PrivateAccessor - Class in com.alibaba.testable.core.tool
 
put(K, V) - Method in class com.alibaba.testable.core.util.FixSizeMap
 

R

recordMockInvoke(Object[], boolean) - Static method in class com.alibaba.testable.core.util.InvokeRecordUtil
Record mock method invoke event
refEq(Object) - Static method in class com.alibaba.testable.core.matcher.InvokeMatcher
 
repeat(String, int) - Static method in class com.alibaba.testable.core.util.StringUtil
 
resetLogLevel() - Static method in class com.alibaba.testable.core.util.LogUtil
 

S

set(Object, String, Object) - Static method in class com.alibaba.testable.core.tool.OmniAccessor
为符合搜索路径的成员赋值
set(Object, String, T) - Static method in class com.alibaba.testable.core.tool.PrivateAccessor
修改任意类的私有字段(或常量字段)
setDefaultLevel(LogLevel) - Static method in class com.alibaba.testable.core.util.LogUtil
 
setGlobalLogPath(String) - Static method in class com.alibaba.testable.core.util.LogUtil
 
setLevel(LogLevel) - Static method in class com.alibaba.testable.core.util.LogUtil
 
setStatic(Class<?>, String, T) - Static method in class com.alibaba.testable.core.tool.PrivateAccessor
修改任意类的静态私有字段(或静态常量字段)
SLASH - Static variable in class com.alibaba.testable.core.constant.ConstPool
 
slice(Object[], int) - Static method in class com.alibaba.testable.core.util.CollectionUtil
 
SOURCE_METHOD - Static variable in class com.alibaba.testable.core.tool.TestableTool
Name of the last visited method in source class
startsWith(String) - Static method in class com.alibaba.testable.core.matcher.InvokeMatcher
 
StringUtil - Class in com.alibaba.testable.core.util
 
StringUtil() - Constructor for class com.alibaba.testable.core.util.StringUtil
 

T

TEST_POSTFIX - Static variable in class com.alibaba.testable.core.constant.ConstPool
Postfix or test and mock file
TestableTool - Class in com.alibaba.testable.core.tool
 
TestableTool() - Constructor for class com.alibaba.testable.core.tool.TestableTool
 
TestableUtil - Class in com.alibaba.testable.core.util
 
TestableUtil() - Constructor for class com.alibaba.testable.core.util.TestableUtil
 
testCaseName - Variable in class com.alibaba.testable.core.model.MockContext
 
testClassName - Variable in class com.alibaba.testable.core.model.MockContext
dot separated class name
THIS_REF - Static variable in class com.alibaba.testable.core.constant.ConstPool
 
times(int) - Method in class com.alibaba.testable.core.matcher.InvokeVerifier
Expect several consecutive invocations with the same parameters
TypeUtil - Class in com.alibaba.testable.core.util
 
TypeUtil() - Constructor for class com.alibaba.testable.core.util.TypeUtil
 

U

UNDERLINE - Static variable in class com.alibaba.testable.core.constant.ConstPool
 
UnnullableMap<K,V> - Class in com.alibaba.testable.core.util
 

V

valueOf(String) - Static method in enum com.alibaba.testable.core.model.ClassType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.alibaba.testable.core.model.LogLevel
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.alibaba.testable.core.model.MockScope
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.alibaba.testable.core.model.ClassType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.alibaba.testable.core.model.LogLevel
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.alibaba.testable.core.model.MockScope
Returns an array containing the constants of this enum type, in the order they are declared.
verbose(String, Object...) - Static method in class com.alibaba.testable.core.util.LogUtil
 
verbose(int, String, Object...) - Static method in class com.alibaba.testable.core.util.LogUtil
 
Verification - Class in com.alibaba.testable.core.model
 
Verification(Object[], boolean) - Constructor for class com.alibaba.testable.core.model.Verification
 
verify(String) - Static method in class com.alibaba.testable.core.matcher.InvokeVerifier
Get counter to check whether specified mock method invoked
VerifyFailedError - Error in com.alibaba.testable.core.error
 
VerifyFailedError(String) - Constructor for error com.alibaba.testable.core.error.VerifyFailedError
 
VerifyFailedError(String, String) - Constructor for error com.alibaba.testable.core.error.VerifyFailedError
 
VerifyFailedError(String, String, String) - Constructor for error com.alibaba.testable.core.error.VerifyFailedError
 

W

warn(String, Object...) - Static method in class com.alibaba.testable.core.util.LogUtil
 
with(Object...) - Method in class com.alibaba.testable.core.matcher.InvokeVerifier
Expect mock method invoked with specified parameters
withInOrder(Object...) - Method in class com.alibaba.testable.core.matcher.InvokeVerifier
Expect next mock method call was invoked with specified parameters
without(Object...) - Method in class com.alibaba.testable.core.matcher.InvokeVerifier
Expect mock method had never invoked with specified parameters
withTimes(int) - Method in class com.alibaba.testable.core.matcher.InvokeVerifier
Expect mock method have been invoked specified times
A C D E F G I J L M N O P R S T U V W 
Skip navigation links

Copyright © 2021. All rights reserved.