peoplemerge / recaptcha4j

Automatically exported from code.google.com/p/recaptcha4j
1 stars 1 forks source link

Allow to change service URLs #14

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Currently, the service URLs like "http://api-verify.recaptcha.net/verify" are 
hardcoded into ReCaptchaImpl constants.
I need to change them to support automated testing (i.e. replace with mock 
service URLs).

The proposed solution is to convert the constants HTTP_SERVER, HTTPS_SERVER and 
VERIFY_URL to fields (with default values) and provide setters for them.

Original issue reported on code.google.com by altum...@gmail.com on 24 Oct 2012 at 8:15