public class MockTest extends Object
| Modifier and Type | Field and Description |
|---|---|
static MockConfig |
childConfig |
static Class<? extends MockEnvironment> |
mockEnvironmentClass |
static MockConfig |
rootConfig |
| Constructor and Description |
|---|
MockTest() |
| Modifier and Type | Method and Description |
|---|---|
static void |
afterClass() |
static void |
beforeClass() |
static MockEnvironment |
getMockEnvironment()
Returns the mock environment, instantiating it if necessary.
|
PageDefinition |
getPageDefinition(String src)
Get a page definition from a source reference.
|
String |
getRealPath(String path)
Returns the real path of a web resource.
|
static String |
getTextFromResource(String resourceName)
Reads text from the specified resource on the classpath.
|
public static Class<? extends MockEnvironment> mockEnvironmentClass
public static MockConfig rootConfig
public static MockConfig childConfig
public static void afterClass()
public static MockEnvironment getMockEnvironment()
public String getRealPath(String path)
path - The relative path of the web resource.public PageDefinition getPageDefinition(String src)
src - A source reference. This is resolved via the servlet context.public static String getTextFromResource(String resourceName) throws IOException
resourceName - Name of the resource.IOException - IO exception.Copyright © 2017 Regenstrief Center for Biomedical Informatics. All rights reserved.