Monthly Archives: January 2013

No image

JUnit Tricks – Part 1 – Parameterized Tests

If you code in Java, I’m sure you’re familiar with JUnit. Although it’s not the only unit test framework out there, it’s probably the most popular, and has inspired a variety of similar frameworks for other languages. In this tutorial, we’re going to examine some of the more advanced features of the newer versions of […]

Read More
No image

Does your server’s response “Vary?”

Raise your hands if you’ve ever coded a web application that did any of the following: Supported more than one language, and automatically chose the language to present based on the contents of the Accept‑Language HTTP header. Generated different response formats (e.g. JSON vs XML) to REST queries based on the contents of the Accept […]

Read More
No image

Defensive UIDocument Coding, Part 2

In Part 1 of this tutorial, we set up a simple UIDocument-based class that will save and read an array of objects containing names and birthdays. We also set up a pair of unit tests that verified that we could, indeed, read and write using this class. In particular, the unit tests were designed to […]

Read More