我有一个依赖Spring 3的项目。我已经编写了依赖于Spring 4中的特性的集成测试。我如何使用Spring 4运行我的测试(集成测试只会是最好的,但在Spring中运行的单元测试4是可以接受的)但保持我的编译依赖3?
我已经考虑过用于集成测试的模块。 这不太理想,所以我正在寻找不需要模块的解决方案。
I have a project with a dependency on Spring version 3. I've written integration tests that depend on features in Spring 4. How do I run my tests with Spring 4 (integration tests only would be the best, but running unit tests in Spring 4 would be acceptable) but keep my compile dependency on 3?
I've already considered a module for integration tests. It's less than ideal, so I'm looking for solutions that do not require modules.
最满意答案
经过一番考虑后,我认为这是模块的完美选择。 我为我的代码和单元测试创建了一个模块,并为我的IT创建了独立的Spring 4依赖模块
After some more consideration I think this is a perfect candidate for modules. I created one module for my code and unit tests and a separate Spring 4 dependent module for my IT's
更多推荐
发布评论