ServiceRegistryLoader
class loads the core set of Testing
Services and stubs required for testing a blade or application. It also provides
a mechanism for replacing any implementation of a core service by invoking
#setService() before #loadServices() is called. Note that no
services are constructed until loadServices()
is invoked.
The core services include:
UserService
is "user".
You can change this by calling #setUserName (before invoking #loadServices.)
Attributes | Name and Description |
---|---|
|
caplin.services.testing.TestServiceRegistryLoader()
Constructs a |
Attributes | Name and Description |
---|---|
|
void
clearServices()
Clears any services registered with this class from the |
|
void
setHtmlBundleUrl(String sUrl)
Sets the URL that will be used to load the HTML bundle. |
|
void
setUserName(String sUserName)
Sets the username that will be returned by the UserService |
|
void
setXmlBUndleUrl(String sUrl)
Sets the URL that will be used to load the XML bundle. |
►
caplin.services.testing.TestServiceRegistryLoader()
Constructs a TestServiceRegistryLoader
for testing purposes.
►
void
clearServices()
Clears any services registered with this class from the ServiceRegistry
.
You can continue to use this instance as long as you reinvoked {setService()} with
any services that you wish to override, followed by an invocation to {#loadServices}.
►
void
setHtmlBundleUrl(String sUrl)
Sets the URL that will be used to load the HTML bundle.
String | sUrl | The URL that the bundler should use to load the HTML bundle. |
►
void
setUserName(String sUserName)
Sets the username that will be returned by the UserService
String | sUserName | The username to return by the UserService |
►
void
setXmlBUndleUrl(String sUrl)
Sets the URL that will be used to load the XML bundle.
String | sUrl | The URL that the bundler should use to load the XML bundle. |