mockito-core-2.23.4.jar
登录
|
org.mockito:mockito-core:2.23.4
META-INF
org
mockito
session
package-info.java
MockitoSession.java
MockitoAnnotations.java
internal
session
package-info.java
configuration
creation
package-info.java
settings
util
bytebuddy
SuspendMethod.java
DelegatingMethod.java
instance
MockSettingsImpl.java
matchers
MockitoCore.java
reporting
util
InternalMockHandler.java
handler
listeners
exceptions
framework
runners
invocation
stubbing
debugging
progress
junit
verification
hamcrest
InOrderImpl.java
Matchers.java
configuration
creation
Captor.java
InjectMocks.java
plugins
ArgumentMatchers.java
InOrder.java
Incubating.java
BDDMockito.java
MockitoFramework.java
MockingDetails.java
quality
AdditionalMatchers.java
ArgumentCaptor.java
Spy.java
codegen
mock
NotExtensible.java
listeners
exceptions
Mockito.java
runners
invocation
CheckReturnValue.java
stubbing
Answers.java
Mock.java
ArgumentMatcher.java
junit
AdditionalAnswers.java
verification
hamcrest
MockSettings.java
MockitoDebugger.java
LICENSE
DelegatingMethod.java
清空
类结构
/* * Copyright (c) 2007 Mockito contributors * This program is made available under the terms of the MIT License. */ package org.mockito.internal.creation; import org.mockito.internal.invocation.
MockitoMethod
; import java.lang.reflect.
Method
; import java.lang.reflect.
Modifier
; public class
DelegatingMethod
implements
MockitoMethod
{ private final
Method
method
; private final
Class
<?>[]
parameterTypes
; public
DelegatingMethod
(
Method
method
) { assert
method
!= null : "Method cannot be null"; this.
method
=
method
; this.
parameterTypes
=
SuspendMethod
.
trimSuspendParameterTypes
(
method
.
getParameterTypes
()); } public
Class
<?>[]
getExceptionTypes
() { return
method
.
getExceptionTypes
(); } public
Method
getJavaMethod
() { return
method
; } public
String
getName
() { return
method
.
getName
(); } public
Class
<?>[]
getParameterTypes
() { return
parameterTypes
; } public
Class
<?>
getReturnType
() { return
method
.
getReturnType
(); } public boolean
isVarArgs
() { return
method
.
isVarArgs
(); } public boolean
isAbstract
() { return (
method
.
getModifiers
() &
Modifier
.
ABSTRACT
) != 0; } /** * @return True if the input object is a DelegatingMethod which has an internal Method which is equal to the internal Method of this DelegatingMethod, * or if the input object is a Method which is equal to the internal Method of this DelegatingMethod. */ @
Override
public boolean
equals
(
Object
o
) { if (this ==
o
) { return true; } if (
o
instanceof
DelegatingMethod
) {
DelegatingMethod
that
= (
DelegatingMethod
)
o
; return
method
.
equals
(
that
.
method
); } else { return
method
.
equals
(
o
); } } @
Override
public int
hashCode
() { return
method
.
hashCode
(); } }
查找资源
Jre/Lib
输入类名或文件名
类结构窗口