Yearly Archives: 2013

No image

iOS Unit Testing – Part 1 – Tips

For many years, iOS applications didn’t get the same kind of unit testing attention that other applications do. Part of this was due to the fact that Apple’s tools didn’t make it easy to set up and run unit tests, and part of it was “it’s all UI, and UI is hard to unit test.” […]

Read More
No image

JUnit Tricks – Part 3 – Assumptions

In Part 1 of this tutorial, we looked at performing parameterized tests in JUnit, and in Part 2 we looked at JUnit’s Rule support. In this portion, we will look at a lesser-used feature of JUnit – assumptions.

Read More
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