How do you unit test legacy systems?

From CitconWiki
Revision as of 00:12, 26 June 2010 by 219.89.98.49 (talk) (New page: context: organizations want to do CI and unit testing with legacy systems problem: these legacy systems were not built with unit testability in mind (e.g. no IoC), scope of re-factoring/re...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

context: organizations want to do CI and unit testing with legacy systems problem: these legacy systems were not built with unit testability in mind (e.g. no IoC), scope of re-factoring/re-engineering if very limited due to constraints solution: use PowerMock to test the untestable

Haowei talked about how PowerMock can help by mocking hardwired dependencies, static methods, private methods.

sorry we didn't have a scribe or tape recorder running, please edit this with your input if you attended this session.