From: Andrew P. <ape...@42...> - 2014-01-03 18:39:20
|
I'm trying to use local test resource .html pages in my unit tests, rather than reaching out to the live, fluctuating Internet. Some of my test pages have equals (=) in their filenames, which ClassLoader.getSystemResource().toString() encodes as "%3d" in the resulting URI string. Trouble is, HtmlUnit WebClient can't retrieve encoded URIs, so my unit tests are giving false negatives. For now, I'm manually decoding the URIs before passing them to WebClient. In the future, could WebClient please automatically decode URIs? -- Cheers, Andrew Pennebaker ape...@42... |