org.kuali.rice.core.api.resourceloader
Class GlobalResourceLoaderTestUtils

java.lang.Object
  extended by org.kuali.rice.core.api.resourceloader.GlobalResourceLoaderTestUtils

public final class GlobalResourceLoaderTestUtils
extends Object

Utility class to allow the injection of services that are fetched via the GlobalResourceLoader.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Method Summary
static void addMockService(String serviceName, Object mockService)
          Inject a service into the GlobalResourceLoader such that anytime that service is fetched by serviceName, the supplied mockService will be returned.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addMockService

public static void addMockService(String serviceName,
                                  Object mockService)
Inject a service into the GlobalResourceLoader such that anytime that service is fetched by serviceName, the supplied mockService will be returned.

Parameters:
serviceName - the name that the service is known by in the GRL
mockService - the service to inject


Copyright © 2005–2014 The Kuali Foundation. All rights reserved.