Category Archives: Programming

I recently had to write a query API for items in a service. Each item has a numerical, consecutively increasing integer as identifier. Therefore, it made sense to allow callers to specify a range. It also makes sense to specify … Continue reading

Posted in Code Pranger, Programming | Leave a comment

Print This Print This   Email This Email This

Capturing a Runnable with JMockit and Executing It

At work, we use JMockit. I’m far more comfortable with Mockito, which made it very easy for me to understand how to capture a Runnable passed in, execute it, and then check that certain calls were made. I have always … Continue reading

Posted in Programming | Leave a comment

Print This Print This   Email This Email This