Monthly Archives: April 2013

No image

A Retry Framework for JPA

Databases are sometimes the bane of developer’s lives. Aside from all the fun of managing objects, queries, etc., databases are notorious for occasionally (and non-repeatably) hitting your application with an exception. All sorts of things can cause this: Your connection to the database may be momentarily interrupted. Even “high availability” approaches aren’t proof against this […]

Read More
No image

Custom Messages in Spring Validation

I always love it when I can use other people’s work. (Legally, of course.) Such is the case with JSR-303 validations, the reference implementation for which is Hibernate Validator. When combined with Spring’s conversion services, this makes for a lot less work in validating input in web applications.

Read More
No image

iOS Unit Testing – Part 8 – Tweaking our Sound Logic

In the previous part of this tutorial, we finished up restructuring and unit testing the on-screen animation code for our sample application. We did still have some issues outstanding with the sound, however, which we will clean up in this part. As always, the source code for this tutorial may be found on GitHub. This […]

Read More
No image

iOS Unit Testing – Part 7 – Finishing our Animation Testing

Before we were so rudely interrupted at the end of Part 6 of this tutorial, we were most of the way through unit testing our SBAnimationManager class. Most of what remains is to test what happens when one of our animations ends. The source code for this tutorial may be found on GitHub. This part’s […]

Read More