Category Archives: Programming

Down the Rabbit Hole

I’m totally going down the rabbit hole this morning… I need to test an rpm package. The host in the cloud can’t access the QA yum repository. So I download the package to my work laptop, copy it to the … Continue reading

Share
Posted in Programming | Leave a comment

Print This Post Print This Post   Email This Email This

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 Post Print This Post   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 Post Print This Post   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 Post Print This Post   Email This Email This