Since Android 3.0 (a.k.a. “Honeycomb”) the ActionBar has been the workhorse of “standard” Android user interfaces. The nice folks over at ActionBarSherlock.com have also created a set of classes and resources that allow you to build ActionBar-based UI’s all the way back to Android 2.0 (“Eclair”). Unfortunately, customizing the look of the ActionBar is not, […]
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 […]
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.
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 […]
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 […]
iOS Unit Testing – Part 6 – Redesign for Testing
As of Part 5 of this tutorial we have basic unit tests in place, but our original code is too monolithic to be able to easily test. Thus, we’re now going to restructure the SBAnimationManager class to make it more testable and flexible. The source code for this tutorial may be found on GitHub. This […]
iOS Unit Testing – Part 5 – Testing Animations
As of Part 4 of this tutorial, we have tested our view controller, and added support for measuring unit test code coverage to our project. At this point, we’re going to test the SBAnimationManager class that is driving the on-screen animations.
iOS Unit Testing – Part 4 – Code Coverage
In Part 3 of this tutorial, we began adding unit tests to our project. So now we know that at least some of our project has been tested. But how much? In order to answer that question, we’re going to add some code coverage measurement to the project. The source code for this tutorial may […]
iOS Unit Testing – Part 3 – Testing our View Controller
In Part 2 of this tutorial, we examined a simple app we’d like to unit test, and in which there were also some bugs lurking. In this portion of the tutorial, we will begin the process. You will find the code for this portion of the tutorial in the Version2 folder in the GitHub project.
iOS Unit Testing – Part 2 – Sample App for Testing
In Part 1 of this tutorial, I made some general comments about how I tend to approach unit testing iOS code. Now we’re going to begin applying these techniques to a real application. As we do this, we will make some changes to the application’s structure to make it more testable. The source code for […]