Using DbUnit with tables which do not have primary keys
问题 I'm attempting to set up my unit testing environment to use DbUnit. I'm having a few problems as the tables which I am attempting to control do not have primary keys. I have been getting a org.dbunit.dataset.NoPrimaryKeyException . I have followed the steps here http://dbunit.wikidot.com/noprimarykeytable but how do I use: connection.getConfig().setProperty("http://www.dbunit.org/properties/primaryKeyFilter", new MyPrimaryKeyFilter("A1")); for each of my tables? For example, I have the