如何使用 TDD 使用 Oracle Service Bus 开发 Web 服务
有人对使用 Oracle Service Bus 开发 Web 服务时如何进行 TDD 和 UNIT 测试有任何意见吗?我能想到的就是删除后端,然后通过服务总线运行测试,但这实际上只是集成测试。在这种情况下我将如何应用 TDD 原则?
Does anyone have any opinions on how TDD and UNIT testing would would when developing web services using Oracle Service Bus? All I can think of is stubbing out the back ends then running tests through the service bus, but that's really just integration testing. How would I apply TDD principles in this instance?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的问题实际上是如何最好地对 Oracle Service Bus 组件进行单元测试?我有同样的问题,但我认为现在您的代码单元不是 Java 方法或类,而是整个代理。
然而,它确实限制您最多只能按照您所描述的那样进行组件集成测试:清除其他系统并通过服务总线运行传统上称为集成测试的内容。
扩大你的工作单元。
如果有更好的方法来自动化和测试这些代码工件,那么我想听听。
Is your question actually how best to conduct unit tests on Oracle Service Bus components? I have the same issue but have come to the view that now your unit of code is not a Java method or a class but a whole proxy.
It does however limit you to being only able, at best, to conduct component integration testing as you have described: Stubbing out the other systems and running what you'd traditionally call Integration tests through the Service Bus.
Scale up your unit of work.
If there is a better way to automate and test these code artifacts then I want to hear about it.