Monthly Archives: August 2009

Add Package (or Class) Filtering To Your Findbugs Ant Task

Following on from my last post about using hbm2java to generate a @Entity bean DAO layer for our application, Findbugs, the great automatic bug finding tool, will find a lot of issues with Hibernate’s auto-generated code (primarily around exposing internal … Continue reading

Posted in Java, Software Engineering | Tagged ant, automation, findbugs, Java, regex, tips | Leave a comment

Using Bottom-Up Iterative Object/Database Layer With hbm2java and warp-persist

This post sort of follows on from my last one – for the project I’m currently working on at work, we have a very large legacy database (1500+ tables) on top of which we are implementing a new business layer … Continue reading

Posted in Java, Software Engineering | Tagged ant, automation, guice, hibernate, Java, jpa, tips, warp-persist | Leave a comment

Automatically Updating Your Source File Headers With Ant’s ReplaceRegExp Task

A while ago I was looking for a way to automatically be able to update the standard “flowerbox text” at the start of all the source files in our projects. Generally this is the space where you would include information … Continue reading

Posted in Java, Software Engineering | Tagged ant, automation, Java, regex, tips | Leave a comment

NetBeans 6.7 Broke My Parameterized Tests

If you had some JUnit parameterized tests with code such as: import java.util.Collection; import junit.framework.TestCase; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; @RunWith(Parameterized.class) public class MyParamTest extends TestCase { public MyParamTest(String s1, String s2) { // do something with s1 and s2 } … Continue reading

Posted in General, Java, Software Engineering | Tagged Java, junit, netbeans, testing | Leave a comment