How can i define a JUnit test in one maven project and have it run in another maven project?

huangapple 未分类评论43阅读模式
英文:

How can i define a JUnit test in one maven project and have it run in another maven project?

问题

我想创建一些架构验证组件,稍后将在架构描述组件中使用。
我的第一个想法是将验证创建为JUnit测试,然后使用这些测试声明测试套件(理想情况下,我甚至不需要声明这些测试,可以使用某种依赖注入来将所有测试放入测试套件中)。
如何使用JUnit和Java CDI来实现这一点?

英文:

I want to create some architecture validation components, that will be later used in architecture description components.
My first idea is to create validations as JUnit test, and then declare test suites using those tests (ideally I would not even have to declare those test and have some kind of dependency injection to have all the tests in the test suite).
How can I do that using JUnit and Java CDI ?

huangapple
  • 本文由 发表于 2020年4月7日 00:32:52
  • 转载请务必保留本文链接:https://java.coder-hub.com/61064540.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定