【发布时间】:2016-09-30 11:57:11
【问题描述】:
我有静态方法,我想捕获 varargs
Executor ex = new Executor();
ex.execute(String nodeName, boolean status, Property ... properties);
ArgumentCaptor<Property> propertyCaptor = ArgumentCaptor.forClass(Property.class);
verify(ex).execute(anyString(), anyBoolean(), propertyCaptor.capture);
propertyCaptor.getValue() - 不起作用????
【问题讨论】:
-
Property...的类是Property[].class
标签: java unit-testing junit powermock