T
- The class to provide.public class MockProvider<T> extends Object implements Provider<T>
Provider
is required to provide an
object and the test case needs to provide a mock of the object.
A new object is returned each the the provider is invoked, unless the object
is bound as a TestScope.SINGLETON
or TestScope.EAGER_SINGLETON
.
Depends on Mockito.Constructor and Description |
---|
MockProvider(Class<T> classToProvide)
Construct a
Provider that will return mocked objects of the specified types. |
Copyright © 2010-2013 ArcBees Inc.. All Rights Reserved.