Skip to main content

Blog Archive for johnsmart during June 2008

People often confuse performance and scalability testing, but they are actually quite different activities. Performance testing involves ensuring that your application responds to requests within an acceptable timeframe. Of course, defining what "acceptable" is is a fine art, and perceived performance (what the user actually sees) is often more important than real performance. Performance...
The classic difference between integration and unit testing is that unit tests run in isolation, or near-isolation. Using an in-memory database for DAO unit tests. Using mocked-out components for the other layers. Integration tests, on the other hand, test the whole stack. If you're using Spring, you inject the whole Spring context and try to flush out any configuration issues, or integration...
I've just been playing with the latest release (1.222). One of the nicest new features is the Plugin Manager. It looks and feels very much like a web version of the NetBeans plugin manager (maybe this isn't really suprising ;-) ). If you aren't familiar with the Netbeans plugin manager, you get four tabs: An Updates tab, where you can see which of your installed plugins are out of date, and...
Andrew Binstock has just written a very positive review of Java Power Tools book, which he calls "The Handiest Java Book in Years": Java Power Tools...contains deep explanations of the principal FOSS dev tools in 10 major categories. These explanations are not two- or four-page summaries, but in-depth expositions that provide crucial info on the strengths and weaknesses of the product. It's...
Let's not be pedantic. Write unit tests before you code a method, or after it - in my experience, it matters little, as long as you think about and write the tests at roughly the same time as you write the code. It's coming back to do the tests later (or not coming back at all) which causes problems. Personally, I like to write unit tests just before or immediately after writing small chunks...