• Like

Automated Integrated Testing with MongoDB

  • 1,106 views
Uploaded on

 

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
1,106
On Slideshare
0
From Embeds
0
Number of Embeds
4

Actions

Shares
Downloads
9
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