How do you unit test legacy systems?

From CitconWiki
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 is limited due to resource constraints

solution: use PowerMock to test the untestable

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

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