Class 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 an EntityProvider, will perform like the actual class so it can be reliably used for testing
    NOTE: you will want to use the CoreEntityProvider stub in almost all cases but this is here for completeness
    Author:
    Aaron Zeckoski (aaronz@vt.edu)
    • Field Detail

      • prefix

        public String prefix
        Set this to the prefix that this EntityProvider handles, 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:
        getEntityPrefix in interface org.sakaiproject.entitybroker.entityprovider.EntityProvider