org.kuali.rice.core.api.resourceloader
Class GlobalResourceLoaderTestUtils
java.lang.Object
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)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 GRLmockService
- the service to inject
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.