com.tngtech.java.junit.dataprovider.format.DataProviderPlaceholderFormatter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of junit4-dataprovider Show documentation
Show all versions of junit4-dataprovider Show documentation
A TestNG like dataprovider runner for JUnit having a simplified syntax compared to all the existing JUnit4 features.
package com.tngtech.java.junit.dataprovider.format;
import java.lang.reflect.Method;
import java.util.List;
import com.tngtech.junit.dataprovider.format.DataProviderTestNameFormatter;
import com.tngtech.junit.dataprovider.placeholder.BasePlaceholder;
import com.tngtech.junit.dataprovider.placeholder.ReplacementData;
public class DataProviderPlaceholderFormatter implements DataProviderTestNameFormatter {
private final String nameFormat;
private final List extends BasePlaceholder> placeholders;
public DataProviderPlaceholderFormatter(String nameFormat, List extends BasePlaceholder> placeholders) {
this.nameFormat = nameFormat;
this.placeholders = placeholders;
}
@Override
public String format(Method testMethod, int invocationIndex, List