Which library are you referring to?
I'm new to jvm programming, and was wondering about this as I'm used to rails where the test db is spun up on your behalf and is usually the same db
Re:AWS is not a dumb pipe
by closeparen on Friday January 21, 2022 @08:32PM
(#30032217)
Much better than mocking out cursor objects!
For PG you can just initdb in a tmpfs.
Re:AWS is not a dumb pipe
by denysvitali on Friday January 21, 2022 @07:55PM
(#30031960)
Or (and this can be done with pretty much everything) spin up a container
Any database vendor should either support having their database used quickly in test like these, or at least release a simplified in memory version of their database so people can test their code. If your database is not testable, that should be a black mark against choosing it for a project.