This story was originally published on HackerNoon at:
https://hackernoon.com/testing-the-untestable-a-simple-way-to-handle-static-methods-in-legacy-java.
This is a pretty straightforward way to test untestable code.
Check more stories related to programming at:
https://hackernoon.com/c/programming.
You can also check exclusive content about
#coding,
#programming,
#testing,
#writing-testable-code,
#testable-design,
#java,
#code-testing,
#dependency-injection, and more.
This story was written by:
@nfrankel. Learn more about this writer by checking
@nfrankel's about page,
and for more stories, please visit
hackernoon.com.
This is a pretty straightforward way to test untestable code.