com.tngtech.jgiven.impl.util.ParameterNameUtil Maven / Gradle / Ivy
package com.tngtech.jgiven.impl.util;
import static java.lang.String.format;
import java.lang.reflect.AccessibleObject;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.google.common.base.Preconditions;
import com.google.common.collect.Lists;
import com.thoughtworks.paranamer.BytecodeReadingParanamer;
import com.thoughtworks.paranamer.Paranamer;
import com.tngtech.jgiven.report.model.NamedArgument;
public class ParameterNameUtil {
private static final Logger log = LoggerFactory.getLogger( ParameterNameUtil.class );
private static final Paranamer PARANAMER = new BytecodeReadingParanamer();
/**
* @throws NullPointerException iif {@code constructorOrMethod} is {@code null}
*/
public static List mapArgumentsWithParameterNames( AccessibleObject constructorOrMethod, List