Your SlideShare is downloading. ×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Automated Integrated Testing with MongoDB

1,239
views

Published on

Published in: Technology

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,239
On Slideshare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
12
Comments
0
Likes
0
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. Automated integration testing with MongoDB
  • 2. @tommysdk tommy.tynja@diabol.se Tommy Tynjä
  • 3. Agenda •  Why integration test? •  How to do it in Java EE •  Experiences with MongoDB •  Automated integration testing with MongoDB
  • 4. Why integration test?
  • 5. Development today 1. 2. ?
  • 6. Consequences
  • 7. Problem Unit tests aren’t sufficient
  • 8. Test in the right environment Test components in their proper context
  • 9. How to do it in Java EE?
  • 10. ShrinkWrap, Arquillian and their logos are trademarks of Red Hat, Inc.
  • 11. Example
  • 12. Example
  • 13. Example
  • 14. Experiences with MongoDB
  • 15. Environment •  Java EE 6 •  JBoss Application Server 7 •  MongoDB 2.0.5 •  PostgreSQL •  Oracle
  • 16. MongoDB use cases •  PDF document storage •  Schema-less data structures
  • 17. MongoDB setup •  Replica set with ~ 1 TB / node •  Single node with ~ 100 GB
  • 18. MongoDB experiences +  Speed, ease of use −  Transactional support
  • 19. Automated integration testing with MongoDB
  • 20. Testing use cases •  Queries •  Inserts •  Transactions •  Web services
  • 21. Database testing •  How to test against the database?
  • 22. Database testing •  How to test against the database? •  In-memory/embedded
  • 23. Database testing •  How to test against the database? •  In-memory/embedded •  In-memory/embedded, in-container
  • 24. Embedded MongoDB Flapdoodle Embedded MongoDB Source code: https://github.com/flapdoodle-oss/embedmongo.flapdoodle.de Authors: https://github.com/flapdoodle-oss?tab=members
  • 25. Example
  • 26. Example
  • 27. Example
  • 28. Summary •  Why integration test? •  How to do it in Java EE •  Automated integration testing with MongoDB
  • 29. Automated integration testing with MongoDB blog.diabol.se arquillian.org @tommysdk tommy.tynja@diabol.se github.com/tommysdk/showcase/tree/master/mongo-in-mem