Unit Testing on Legacy Code – code cast
Blog post series
This is a code cast in Java.
In the previous episodes we reach the moment when we extracted one simple class. We used the The Rule of Three and pure functions. This newly extracted class is covered with characterization tests. But that is not enough, we want to continue adding other types of tests to understand the system better.
This is why during this episode you will see how to add unit tests to code extracted from a legacy code class. These tests have a small granularity level than the characterization tests we already have. This is the moment to dive more into details.
See this video to understand how you can document the current state of the system, by unit testing on legacy code.
Read here more about this concept in my blog post.