Webapp working, First test of BackendsController
BackendsController now really transforms values from service
Tweak for zero backends
Removed quotes from port in JSON to comply with AcceptanceTest (rather than the text of the assignment)
Sorry, had to modify to suit my setup in which I had to change port numbers (8081 was occupied by antivirus)
dummyFixed com.gooddata.interviewtask.httpproxy.AcceptanceTest.listBackends
....AcceptanceTest.listBackends is GREEN
Refactoring -> better package structure
Implemented /ping,
fixed tests (added missing resets),
AcceptanceTest is GREEN but shouldn't be. delayedResponse should have failed. Gotta fix the test, then fix the program.
Fixed false positive test delayedResponse.
refactoring
AcceptanceTest all GREEN.
refactored tests
Added missing test of preferred second node.
Added 1 more (IMHO) missing test.
+ typo fix
Smarter JSON assembly + verification in tests.
Migrated Backend.id to Integer to comply with JSON returned by backends' /alive and to avoid unnecessary conversions.
cleanup
Optimization: spare the expensive Jersey Client instantiation.
Removed some unnecessary files generated by spring-mvc-quickstart-archetype.
+ Added a bit of JavaDoc