I got asked a very simple question today: how do you go about adding unit tests to an already existing J2EE app? In particular, so you can test your logic standalone, without needing to go through a deployment cycle and test it in the server?
Examples for “More on getters and setters”
At the request of a reader, I’ve decided to post some examples on how something like the Employee class described in Allen Holub’s article More on getters and setters could evolve. This may not be the only way, but it certainly is one way.
Continue reading “Examples for “More on getters and setters””
More on “More on getters and setters”
Allen Holub wrote an article in Javaworld recently entitled More on getters and setters Oh boy, has this article caused some fuss in places.