expect(encoding.getPathInfo()).andReturn(pathInfo);
}
public void test_Encode_Unprotected()
{
ServiceEncoding encoding = newEncoding();
trainGetParameterValue(encoding, ServiceConstants.SERVICE, Tapestry.ASSET_SERVICE);
trainGetParameterValue(encoding, AssetService.PATH, "/foo/bar/Baz.gif");
trainGetParameterValue(encoding, AssetService.DIGEST, null);
encoding.setServletPath("/assets/" + AssetEncoder.DIGEST_STATIC + "/foo/bar/Baz.gif");
encoding.setParameterValue(AssetService.PATH, null);
encoding.setParameterValue(AssetService.DIGEST, null);
encoding.setParameterValue(ServiceConstants.SERVICE, null);
replay();
AssetEncoder encoder = new AssetEncoder();
encoder.setPath("/assets");