为 Neo4j 单元测试创建 MOCK UP 数据
Creating MOCK UP Data for Neo4j Unit testing
我想用 java 代码在 neo4j 中对我的应用程序进行单元测试。我们正在为其编写 junit 测试用例。但是我们希望当我们 运行 junit 测试用例时,它不应该将它传递给主数据库而不是其他一些模型数据。
我们使用的是neo4j服务器,没有使用嵌入式数据库。
How could this be achieved?
How can we create mockup data for testing neo4j related code?
How to create a mocked database for unit testing so that main database
not be touched.
Is there any tool to mock the main database or we have to do it
manually through the code?
我们在 testing your Neo4j-based Java application 上发表了一篇很棒的文章,应该可以为您提供一些测试选项。
我想用 java 代码在 neo4j 中对我的应用程序进行单元测试。我们正在为其编写 junit 测试用例。但是我们希望当我们 运行 junit 测试用例时,它不应该将它传递给主数据库而不是其他一些模型数据。
我们使用的是neo4j服务器,没有使用嵌入式数据库。
How could this be achieved?
How can we create mockup data for testing neo4j related code?
How to create a mocked database for unit testing so that main database not be touched.
Is there any tool to mock the main database or we have to do it manually through the code?
我们在 testing your Neo4j-based Java application 上发表了一篇很棒的文章,应该可以为您提供一些测试选项。