org.sakaiproject.entitybroker.mocks
Class EntityProviderMock

java.lang.Object
  extended by 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 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 Summary
 String prefix
          Set this to the prefix that this EntityProvider handles, default value is "testPrefix"
 
Constructor Summary
EntityProviderMock(String prefix)
          TEST Constructor: allows for easy setup of this stub for testing
 
Method Summary
 String getEntityPrefix()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 EntityProvider


Copyright © 2007-2012 Sakai Project. All Rights Reserved.