在调试测试时,连接到内存Hsql(超音速)数据库与DatabaseManager [英] Connect to in memory Hsql (hypersonic) database with DatabaseManager while debugging tests
问题描述
在IDE中调试测试(Intellij IDEA 11.1.2)时,我想使用hsql DatabaseManager(或swing版本,没关系)连接到内存中的HSQL数据库实例。
I would like to connect to an in-memory HSQL database instance using the hsql DatabaseManager (or the swing version, it doesn't matter) while debugging tests in my IDE (Intellij IDEA 11.1.2).
我已经按照这个答案所建议的尝试,但每次我做所以DatabaseManager进程/线程(我不知道哪个)启动并冻结。如果kill / force退出,调试会话也会消失。
I have tried as was suggested by this answer, but every time I do so the DatabaseManager process/thread (I don't know which) starts and freezes. If kill/force quit it, the debug session also dies.
如果没有DatabaseManager冻结,我该怎么做?
How can I do this without the DatabaseManager freezing?
推荐答案
您的Spring / JUnit是在进程中的模式。
Your Spring/JUnit is starting the database in in-process mode.
您的选项将是:
- 在服务器模式下启动hsqldb
-
- 或从您的应用程序启动DBmanager
- 或者使您的断点仅停止当前线程,那么您的数据库管理员将不会冻结
这篇关于在调试测试时,连接到内存Hsql(超音速)数据库与DatabaseManager的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!