This video shows the refactoring of Java legacy code and the presentation was given to the Java User Group Berlin Brandenburg. The beginning is a mess of ugly code that uses an HttpClient to acquire currency conversions. The higher-order goal of the code is to find deals in currency translation that result in a net positive.
The talk discusses and explores:
– Introducing an Instance Delegator
– Making a resettable singleton
– Using JMockit to work absolute black magic
– Writing tests on top of existing legacy code
– The woes of trying to get something under test that really wasn’t written very well
Video Producer: http://schuchert.wikispaces.com/