WebCenter Interaction API  
 

PortalObjectsFactoryService.setTestInstance Method 

Unit tests should use this method to overwrite/teardown existing Service singleton. DO NOT USE for production code. NOTE: When finished with a unit test, this should be set back to null so as not to interfere with other tests.

public static void setTestInstance(
   IPortalObjectsFactory testHelper
);

See Also

PortalObjectsFactoryService Class | com.plumtree.server Namespace