verify(servletContext);
}
public void testGetResourceAsStreamNotClassPath() throws MalformedURLException {
servletContext = createMock(ServletContext.class);
PartitionedServletContext wrapperContext = new PartitionedServletContext(servletContext, "", "mymodule", webAttributeQualifier, ClassUtils.getDefaultClassLoader());
expect(servletContext.getResource("nopresent.xml")).andReturn(null);
expect(servletContext.getResource("/nopresent.xml")).andReturn(null);
replay(servletContext);
//in both cases the item is found on the classpath, so no call to underlying servletContext is made
wrapperContext.getResourceAsStream("nopresent.xml");
wrapperContext.getResourceAsStream("/nopresent.xml");
verify(servletContext);
}