Your SlideShare is downloading. ×
0
Spring Test DBUnit
Spring Test DBUnit
Spring Test DBUnit
Spring Test DBUnit
Spring Test DBUnit
Spring Test DBUnit
Spring Test DBUnit
Spring Test DBUnit
Spring Test DBUnit
Spring Test DBUnit
Spring Test DBUnit
Spring Test DBUnit
Spring Test DBUnit
Spring Test DBUnit
Spring Test DBUnit
Spring Test DBUnit
Spring Test DBUnit
Spring Test DBUnit
Spring Test DBUnit
Spring Test DBUnit
Spring Test DBUnit
Spring Test DBUnit
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Spring Test DBUnit

1,973

Published on

Lightning talk on Spring Test DBUnit from 2012. Code examples available here: https://github.com/jarannilsen/springtestdbunit-demo

Lightning talk on Spring Test DBUnit from 2012. Code examples available here: https://github.com/jarannilsen/springtestdbunit-demo

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,973
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
13
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. DAO testing with Spring Test DBUnitLightning Talk @ JavaBin SørlandetJune 8 2012
  • 2. Spring Test DBUnit● Integration between Spring Test and DBUnit● http://github.com/springtestdbunit/
  • 3. The point?Makes DAO testing with actual data very easy!
  • 4. Our current solution
  • 5. Meet Mr. Bean and his DAO
  • 6. Meet Mr. Bean and his DAO
  • 7. Meet Mr. Bean and his DAO
  • 8. Configuration
  • 9. Configuration B! LD HSQ
  • 10. … and the test case
  • 11. … and the test case
  • 12. The data set XML file!
  • 13. @DatabaseSetup
  • 14. Test case with @DatabaseSetup
  • 15. Supports both class and method level
  • 16. Can also be used with JUnit @Rules
  • 17. @DatabaseTearDown
  • 18. @ExpectedDatabase
  • 19. Using @Transactional?No worries – its just a small modification to@TestExectutionListener
  • 20. ●vs
  • 21. Code examples:http://github.com/jarannilsen/springtestdbunit-demo
  • 22. Thank you!

×