I have declared the following method:
private void mockInvokeDBHandler(Map... rows) {
List
You could lower the burden of using a List instead of varargs by using some builder interface (e.g. like the one I'm using). Using this CollectionBuilder, it would become something like this:
mockInvokeDBHandler(CollectionBuilder.
it's prettier without generic args though:
import static at.molindo.utils.collections.CollectionBuilder.list
List list = list(String.class).add("foo").addAll(set).get();
It's certainly longer as the varargs solution, but anyway pretty handy at times.