我们可以为jmockit的模拟注释创建自定义包装器吗?

时间:2017-05-30 10:05:29

标签: java junit annotations mocking jmockit

我们可以为模拟注释或jockock的MockUp类创建自定义包装器吗?如果有可能,你可以解释我们怎么做。

1 个答案:

答案 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.