public class MockContainerResourceLocator extends Object implements ContainerResourceLocator
| Modifier and Type | Field and Description |
|---|---|
static File |
TEST_STANDALONE_CTX_BASE |
| Constructor and Description |
|---|
MockContainerResourceLocator() |
| Modifier and Type | Method and Description |
|---|---|
URI |
getBaseURI() |
InputStream |
getResource(String uri) |
InputStream |
getResource(String configName,
String defaultUri) |
void |
setResource(String nameOrUri,
InputStream stream) |
public static final File TEST_STANDALONE_CTX_BASE
public void setResource(String nameOrUri, InputStream stream)
public InputStream getResource(String configName, String defaultUri) throws IllegalArgumentException, IOException
getResource in interface ContainerResourceLocatorIllegalArgumentExceptionIOExceptionpublic InputStream getResource(String uri) throws IllegalArgumentException, IOException
getResource in interface ExternalResourceLocatorIllegalArgumentExceptionIOExceptionpublic URI getBaseURI()
getBaseURI in interface ContainerResourceLocatorCopyright © 2015. All rights reserved.