throw new NullPointerException("dataConverter must not be null");
}
this.dataConverter = dataConverter;</BUG>
}
<BUG>public void validateTestMethod(FrameworkMethod testMethod, List<Throwable> errors) {
if (testMethod == null) {
throw new NullPointerException("testMethod must not be null");
}
if (errors == null) {
throw new NullPointerException("errors must not be null");
}</BUG>
UseDataProvider useDataProvider = testMethod.getAnnotation(UseDataProvider.class);

import org.junit.runners.model.InitializationError;
import com.tngtech.java.junit.dataprovider.DataProvider;
import com.tngtech.java.junit.dataprovider.UseDataProvider;
public class TestValidator {
private final DataConverter dataConverter;
public TestValidator(DataConverter dataConverter) {
this.dataConverter = checkNotNull(dataConverter, "dataConverter must not be null");
}
public void validateTestMethod(FrameworkMethod testMethod, List<Throwable> errors) {
checkNotNull(testMethod, "testMethod must not be null");
checkNotNull(errors, "errors must not be null");
UseDataProvider useDataProvider = testMethod.getAnnotation(UseDataProvider.class);
