The Zombie Sort Test

A great little exercise is implementing a sort comparator. The problem is this: Goal:  Write a concrete implementation to an interface “Comparator”  that sorts an object Zombie by Zombie’s last name property.  Comparator has a method “compare” that you will override with your implementation. The  output is a new list sorted in alphabetical order by […]

JMockit With a Static, a Thread, and a Singleton

Working on a legacy Logging class that uses Thread and a custom Log class singleton (that doesn’t even extend slf4j.Logger, but uses it. ummm . . . future refactor); the task was givern to me to test it. Looked in the pom and saw JMockit AND Mockito referenced, and no PowerMock. There were very few […]