• Jobs
  • About Us
  • professionals
    • Home
    • Jobs
    • Courses and challenges
  • business
    • Home
    • Post vacancy
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

409
Views
MongoDB how to test locally in Java a MongoDB database, like H2 with sql database?

I'm developing a program that use MongoDB database but I'm asking if it is possible to use an internal database for test like H2 when doing SQL through Java?

about 3 years ago · Santiago Trujillo
1 answers
Answer question

0

You can try to use Testcontainers

Testcontainers is a Java library that supports JUnit tests, providing lightweight, throwaway instances of common databases.

Or look at https://github.com/flapdoodle-oss/de.flapdoodle.embed.mongo


Update:

It seems that there is already an answer to your question: Embedded MongoDB when running integration tests

about 3 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Our process Sales
Legal
Terms and conditions Privacy policy
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recommend me some offers
I have an error