Uses of Interface
org.unitils.mock.mockbehavior.MockBehavior

Packages that use MockBehavior
org.unitils.mock   
org.unitils.mock.core   
org.unitils.mock.core.matching.impl   
org.unitils.mock.dummy   
org.unitils.mock.mockbehavior   
org.unitils.mock.mockbehavior.impl   
 

Uses of MockBehavior in org.unitils.mock
 

Methods in org.unitils.mock with parameters of type MockBehavior
 T Mock.oncePerforms(MockBehavior mockBehavior)
          Defines behavior for this mock so that will be performed when the invocation following this call matches the observed behavior.
 T Mock.performs(MockBehavior mockBehavior)
          Defines behavior for this mock so that will be performed when the invocation following this call matches the observed behavior.
 

Uses of MockBehavior in org.unitils.mock.core
 

Fields in org.unitils.mock.core declared as MockBehavior
protected  MockBehavior BehaviorDefiningInvocation.mockBehavior
           
 

Methods in org.unitils.mock.core that return MockBehavior
protected  MockBehavior PartialMockProxy.getDefaultMockBehavior(ProxyInvocation proxyInvocation)
           
protected  MockBehavior MockProxy.getDefaultMockBehavior(ProxyInvocation proxyInvocation)
           
 MockBehavior ObservedInvocation.getMockBehavior()
           
 MockBehavior BehaviorDefiningInvocation.getMockBehavior()
           
protected  MockBehavior MockProxy.getValidMockBehavior(ProxyInvocation proxyInvocation, BehaviorDefiningInvocation behaviorDefiningInvocation)
           
 

Methods in org.unitils.mock.core with parameters of type MockBehavior
protected  void MockProxy.assertCanExecute(MockBehavior mockBehavior, ProxyInvocation proxyInvocation, BehaviorDefiningInvocation behaviorDefiningInvocation)
          Check whether the mock behavior can applied for this invocation
protected  MatchingInvocationHandler MockObject.createAlwaysMatchingBehaviorDefiningMatchingInvocationHandler(MockBehavior mockBehavior)
           
protected  MatchingInvocationHandler MockObject.createOneTimeMatchingBehaviorDefiningMatchingInvocationHandler(MockBehavior mockBehavior)
           
 T MockObject.oncePerforms(MockBehavior mockBehavior)
          Defines behavior for this mock so that will be performed when the invocation following this call matches the observed behavior.
 T MockObject.performs(MockBehavior mockBehavior)
          Defines behavior for this mock so that will be performed when the invocation following this call matches the observed behavior.
 void BehaviorDefiningInvocation.setMockBehavior(MockBehavior mockBehavior)
           
 

Constructors in org.unitils.mock.core with parameters of type MockBehavior
BehaviorDefiningInvocation(ProxyInvocation proxyInvocation, MockBehavior mockBehavior, List<ArgumentMatcher> argumentMatchers)
          Creates a behavior defining invocation for the given prosy invocation.
ObservedInvocation(ProxyInvocation proxyInvocation, BehaviorDefiningInvocation behaviorDefiningInvocation, MockBehavior mockBehavior)
          Creates a observed invocation for the given prosy invocation.
 

Uses of MockBehavior in org.unitils.mock.core.matching.impl
 

Classes in org.unitils.mock.core.matching.impl that implement MockBehavior
static class BehaviorDefiningMatchingInvocationHandler.ChainedMockBehavior
           
 

Fields in org.unitils.mock.core.matching.impl declared as MockBehavior
protected  MockBehavior BehaviorDefiningMatchingInvocationHandler.mockBehavior
           
protected  MockBehavior BehaviorDefiningMatchingInvocationHandler.ChainedMockBehavior.originalMockBehavior
           
 

Constructors in org.unitils.mock.core.matching.impl with parameters of type MockBehavior
BehaviorDefiningMatchingInvocationHandler(MockBehavior mockBehavior, BehaviorDefiningInvocations behaviorDefiningInvocations, MockFactory mockFactory)
           
 

Uses of MockBehavior in org.unitils.mock.dummy
 

Methods in org.unitils.mock.dummy with parameters of type MockBehavior
static
<T> T
DummyObjectUtil.createDummy(Class<T> type, MockBehavior mockBehaviour)
           
 

Constructors in org.unitils.mock.dummy with parameters of type MockBehavior
DummyObjectUtil.DummyObjectInvocationHandler(Class<?> dummyObjectType, MockBehavior mockBehavior)
           
 

Uses of MockBehavior in org.unitils.mock.mockbehavior
 

Subinterfaces of MockBehavior in org.unitils.mock.mockbehavior
 interface ValidatableMockBehavior
          todo javadoc
 

Uses of MockBehavior in org.unitils.mock.mockbehavior.impl
 

Classes in org.unitils.mock.mockbehavior.impl that implement MockBehavior
 class DefaultValueReturningMockBehavior
          Mock behavior that returns a default value.
 class DummyValueReturningMockBehavior
          Mock behavior that returns a default value.
 class ExceptionThrowingMockBehavior
          Mock behavior that throws a given exception.
 class NoopMockBehavior
          Mock behavior that does nothing.
 class OriginalBehaviorInvokingMockBehavior
          Mock behavior that, instead of mocking the method invocation, performs the actual behavior of the mocked class.
 class StubMockBehavior
          Mock behavior that returns a default value if a value can be returned, nothing happens when the result type is void.
 class ValueReturningMockBehavior
          Mock behavior that returns a given value.
 



Copyright © 2011. All Rights Reserved.