@@ -0,0 +1,1612 @@
+/*%0A * #%25L%0A * wcm.io%0A * %25%25%0A * Copyright (C) 2017 wcm.io%0A * %25%25%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A * #L%25%0A */%0Apackage io.wcm.qa.galenium.providers;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.Collection;%0A%0Aimport org.apache.commons.lang3.ArrayUtils;%0A%0Afinal public class TestNgProviderUtil %7B%0A%0A  private TestNgProviderUtil() %7B%0A    // do not instantiate%0A  %7D%0A%0A  public static Object%5B%5D%5B%5D combine(Iterable... argumentLists) %7B%0A    Collection%3CObject%5B%5D%3E combinedArguments = new ArrayList%3C%3E();%0A    for (Iterable argumentList : argumentLists) %7B%0A      combinedArguments = addArguments(combinedArguments, argumentList);%0A    %7D%0A%0A    return combinedArguments.toArray(new Object%5BcombinedArguments.size()%5D%5B%5D);%0A  %7D%0A%0A  private static Collection%3CObject%5B%5D%3E addArguments(Collection%3CObject%5B%5D%3E initialArguments, Iterable newArguments) %7B%0A    Collection%3CObject%5B%5D%3E combinedArguments = new ArrayList%3C%3E();%0A    for (Object newArgument : newArguments) %7B%0A      for (Object%5B%5D objects : initialArguments) %7B%0A        combinedArguments.add(ArrayUtils.add(objects, newArgument));%0A      %7D%0A    %7D%0A%0A    return combinedArguments;%0A  %7D%0A%0A%7D%0A

add util class to help with writing data providers for TestNG