Class EntityProviderMock
- java.lang.Object
-
- org.sakaiproject.entitybroker.mocks.EntityProviderMock
-
- All Implemented Interfaces:
org.sakaiproject.entitybroker.entityprovider.EntityProvider
- Direct Known Subclasses:
CoreEntityProviderMock,CRUDableEntityProviderMock,TaggableEntityProviderMock
public class EntityProviderMock extends Object implements org.sakaiproject.entitybroker.entityprovider.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)
-
-
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 interfaceorg.sakaiproject.entitybroker.entityprovider.EntityProvider
-
-