org.mockito.internal
Class MockitoCore

java.lang.Object
  extended by org.mockito.internal.MockitoCore

public class MockitoCore
extends java.lang.Object


Constructor Summary
MockitoCore()
           
 
Method Summary
 Stubber doAnswer(Answer answer)
           
 Invocation getLastInvocation()
          For testing purposes only.
 InOrder inOrder(java.lang.Object... mocks)
           
<T> T
mock(java.lang.Class<T> classToMock, MockSettings mockSettings)
           
<T> void
reset(T... mocks)
           
 IOngoingStubbing stub()
           
<T> DeprecatedOngoingStubbing<T>
stub(T methodCall)
          Deprecated. 
<T> VoidMethodStubbable<T>
stubVoid(T mock)
           
 void validateMockitoUsage()
           
<T> T
verify(T mock, VerificationMode mode)
           
 void verifyNoMoreInteractions(java.lang.Object... mocks)
           
<T> OngoingStubbing<T>
when(T methodCall)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockitoCore

public MockitoCore()
Method Detail

mock

public <T> T mock(java.lang.Class<T> classToMock,
                  MockSettings mockSettings)

stub

public IOngoingStubbing stub()

stub

@Deprecated
public <T> DeprecatedOngoingStubbing<T> stub(T methodCall)
Deprecated. 


when

public <T> OngoingStubbing<T> when(T methodCall)

verify

public <T> T verify(T mock,
                    VerificationMode mode)

reset

public <T> void reset(T... mocks)

verifyNoMoreInteractions

public void verifyNoMoreInteractions(java.lang.Object... mocks)

inOrder

public InOrder inOrder(java.lang.Object... mocks)

doAnswer

public Stubber doAnswer(Answer answer)

stubVoid

public <T> VoidMethodStubbable<T> stubVoid(T mock)

validateMockitoUsage

public void validateMockitoUsage()

getLastInvocation

public Invocation getLastInvocation()
For testing purposes only. Is not the part of main API.