Unit testing and declarative transactions with Spring and Hibernate
I’ve developed a simple service for creating users in an application, which I want to unit test. The service’s methods are declared as transactional with Spring metadata (In my case, I’m using...
View ArticleUnit testing, a better way
I’ve already blogged about unit testing with Spring and Hibernate. But it turned out that unit testing is much simpler when it is done the right way. See for yourself and compare. Instead of having a...
View ArticleLogging SQL queries with Spring
If you need to see the SQL executed by Spring jdbc classes, you can use log4j configuration to turn on debug logging level on the org.springframework.jdbc.core package...
View ArticleEffective Java Exceptions
I’ve read Barry Ruzek‘s (who I did not know before) article on Effective Java Exceptions (found via TSS). Essentially, it classifies errors in two categories: contingencies and faults. Contingencies...
View ArticleTransparent database encryption
A co-worker and friend of mine recently released a new open-source project. It is called Jasypt (Java Simplified Encryption). It is focused on simplying the most usual cryptographic tasks (like...
View ArticleAppfuse 2.0, sweet!
I must admit that I had never tried Appfuse 1.0 because of my laziness. It required me to download something, install it somewhere and then run ant on it… too many things just for giving it a test...
View ArticleMaintainJ, generating UML diagrams from runtime execution
I’ve just learned from MaintainJ on TSS, and it looks like a cool idea. In brief, it is able to instrument your code (using AspectJ for that, so no code modification is performed) so it writes calls to...
View ArticleFirst contact with Spring RMI
For years, I’ve been surrounded by components using Java RMI, but never ever needed to implement anything using it. So when chance came, I went the Spring way, as I knew it had support for...
View ArticleCoding productivity
I while back, I read The Mythical Man-Month. The data in chapter 8 of the book (which is by no means recent) points out that the average productivity for a developer, measured in debugged lines of code...
View ArticleNew in q4e 0.6.0
I was planning to write a “q4e 0.5.0 released” post later today, but since Carlos has already done so, I will fast forward one whole version :-) My goal for 0.6.0 will be to abstract q4e from the JDT...
View Article
More Pages to Explore .....