Class EntityProviderMock
- java.lang.Object
-
- org.sakaiproject.entitybroker.mocks.EntityProviderMock
-
- All Implemented Interfaces:
EntityProvider
- Direct Known Subclasses:
CoreEntityProviderMock,CRUDableEntityProviderMock,TaggableEntityProviderMock
public class EntityProviderMock extends Object implements EntityProvider
Stub class to make it easier to test things that use anEntityProvider, will perform like the actual class so it can be reliably used for testing
NOTE: you will want to use theCoreEntityProviderstub in almost all cases but this is here for completeness- Author:
- Aaron Zeckoski (aaronz@vt.edu)
-
-
Field Summary
Fields Modifier and Type Field Description StringprefixSet this to the prefix that thisEntityProviderhandles, default value is "testPrefix"
-
Constructor Summary
Constructors Constructor Description EntityProviderMock(String prefix)TEST Constructor: allows for easy setup of this stub for testing
-
-
-
Field Detail
-
prefix
public String prefix
Set this to the prefix that thisEntityProviderhandles, default value is "testPrefix"
-
-
Constructor Detail
-
EntityProviderMock
public EntityProviderMock(String prefix)
TEST Constructor: allows for easy setup of this stub for testing- Parameters:
prefix-
-
-
Method Detail
-
getEntityPrefix
public String getEntityPrefix()
- Specified by:
getEntityPrefixin interfaceEntityProvider
-
-