JMockit allows developers to write unit and integration tests without the testability issues typically found with other mocking tools. It support hibernate mock too.
Sounds like very well fit with tapestry. T5 has test ability with inject dependency itself: it can load RegistryBuilder from test appModule to get DAO and service injections. such as : protected void setUp(){ builder=new RegistryBuilder(); builder.add(TapestryIOCModule.class); builder.add(HibernateCoreModule.class); builder.add(MiniAppModule.class); //MiniAppModule is my test app module reg= builder.build(); reg.performRegistryStartup(); ... } Do you know how to make db related test on jmockit or dbunit? One simplest way: change hibernate to use hsqlDB in memory for test environment,but how can do that to change another hibernate configure,instead of product or development environment? -- cleverpig(Dan) Location: Beijing Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China Zipcode: 100031 MSN: great_liu...@hotmail.com QQ: 149291732 Skype: cleverpigatmatrix Facebook ID:cleverpig Blog: cleverpig.name/dan/ Tags: del.icio.us/cleverpig Twitter: twitter.com/cleverpig 新浪微博: t.sina.com.cn/cleverpig Organization: www.beijing-open-party.org or...@facebook: http://www.facebook.com/group.php?gid=8159558294 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org