EasyMock.verify(mockedCodec, resourceCodecData, mockCache);
}
public void testVersionedResource() throws Exception {
WebRequest webRequest = new WebRequest(new URL(
"http://localhost/rfRes/org.richfaces.resource.VersionedResourceImpl.jsf"));
WebResponse resourceResponse = webClient.loadWebResponse(webRequest);
assertEquals(HttpServletResponse.SC_OK, resourceResponse.getStatusCode());
webRequest = new WebRequest(new URL(
"http://localhost/rfRes/org.richfaces.resource.VersionedResourceImpl.jsf?v=1_0_2"));
resourceResponse = webClient.loadWebResponse(webRequest);
assertEquals(HttpServletResponse.SC_OK, resourceResponse.getStatusCode());
webRequest = new WebRequest(new URL(
"http://localhost/rfRes/org.richfaces.resource.VersionedResourceImpl.jsf?v=1_0_3"));
resourceResponse = webClient.loadWebResponse(webRequest);
assertEquals(HttpServletResponse.SC_NOT_FOUND, resourceResponse.getStatusCode());
}