使用 SpringWirableFixture 的 Fitnesse slim 测试未终止
我正在创建 Fitnesse slim 测试(决策表)。为了运行测试,我需要启动我的 Spring 应用程序。语境。为此,我使用了一个扩展 FixtureWirer 的类。启动应用程序上下文不是问题,因为测试已成功完成。在页面中我可以看到测试已完成并且所有输出值都已进行比较。问题是,最终结果的页面永远不会停止加载,但不会抛出异常。只有当我使用 FixtureWirer 启动应用程序上下文时才会发生这种情况,所以我猜测问题与此相关,但我一直无法弄清楚。
提前致谢。
I'm creating a Fitnesse slim test (Decision Table). In order to run the test I need to start my Spring app. context. For that, I'm using a class that extends FixtureWirer. Starting the application context is not a problem, since the test completes successfully. In the page I can see that the test is complete and all the output values are compared. The problem is that the page with the final results never stops loading, but no exception is thrown. And that only happens when I use the FixtureWirer to start the application context, so I'm guessing the problem is related to that, but I haven't been able to figure it out.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您的意思是测试没有按预期停止吗?如果是这样,您可以尝试关闭上下文吗
Do you mean the test doesn't stop as it is supposed to? If so, can you try to close the context
这可能是因为 Spring 的关闭钩子无法销毁必须
被任何资源阻止。
您能否检查执行测试后是否有任何活动线程被阻塞?
如果还有任何活动线程,那么 Slim 服务器将不会终止(SlimServer java 进程不会被终止)。
This may be because your Spring's shut down hook, is not being able to destroy beans which must
be blocked by any resource.
Can you check if there are any live threads after the execution of test that are blocked?
If there are any live threads left then Slim server would not terminate (SlimServer java process will not be killed).