我们可以为模拟注释或jockock的MockUp类创建自定义包装器吗?如果有可能,你可以解释我们怎么做。
答案 0 :(得分:0)
You can create a "custom wrapper" for JMockit's @Tested
annotation (ie, use it as a meta-annotation), but not for any of the other annotations, @Mock
included. So, the answer is no, it's not possible.