O'Reilly logo

Swing Extreme Testing by Tim Lavers, Lindsay Peters

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 5. Managing and Testing User Messages

In Java, we use resource bundles to store the text that is presented in our user interfaces. This has a number of benefits. For example, it is then very easy to produce localized versions of our software. In this chapter, we introduce a system of managing and testing resource bundles that achieves two important goals.

First, we will be able to thoroughly unit test our resource bundles. This eliminates a lot of mistakes that would otherwise be found only with laborious manual testing.

Second, we will ensure that keyboard shortcuts can be used to activate all of our components. This is an important aspect of usability, and keyboard shortcuts are the way we will be activating our components in automated ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required