S
S
Saintka2021-06-07 09:14:23
Java
Saintka, 2021-06-07 09:14:23

Is it possible to use TestContainers with h2database?

I'm trying to find some information on this issue, but so far without success. Is it possible to use TestContainer for h2? If yes, then I would be grateful if you throw articles on how to interact with this, using Spring Boot.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Roo, 2021-06-07
@xez

No, of course not. These are practically perpendicular technologies.
It (testcontainers), in part, was implemented and is being implemented in order to refuse from h2.
(and I advise you the same, by the way)
If you really need h2, then you definitely don’t need testcontainers for it - h2 unfolds once or twice without docker and without testcontainers.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question