Pregunta

I'm working in a project which is using DB2 + myBatis. Currently I'm defining a concept for test automation and I consider using Java DB (former apache derby) as in memomy db for unit tests. Does anyone have experience with this? Does Java DB can be used as a kind of substitution of DB2? From what I could see it's using same dialect as DB2, but that's not enough of course

¿Fue útil?

Solución

I've tried this, see this question, which I had when trying to introduce integration tests using Derby for a legacy database that used DB2. How well using Java DB in place of DB2 will depend on how much DB2-specific SQL and DDL you need to support.

If you want a version of DB2 you can install on a developer machine, you could try IBM DB2 Express-C, it's a no-charge version of DB2 you can use locally.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top