Category Archives: Programming

swagger-codegen 2.3.0 Breaks Inheritance?

For a hack day at work, I’ve been trying to integrate our code generator into the online Swagger editor and generator. Of course, I’ve been trying to use the latest version, which appears to be 2.3.0-SNAPSHOT (although I just saw … Continue reading

Share
Posted in Code Pranger, Programming, Ramblings | Leave a comment

Print This Print This   Email This Email This

Query API with startId, endId, and count

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

Share
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

Share
Posted in Programming | Leave a comment

Print This Print This   Email This Email This