
com.jparams.junit4.test.data.reader.ProvidedDataReader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jparams-junit4 Show documentation
Show all versions of jparams-junit4 Show documentation
Parameterized JUnit4 Tests
package com.jparams.junit4.test.data.reader;
import com.jparams.junit4.test.data.provider.Provider;
import com.jparams.junit4.test.data.reader.exception.ReaderException;
public class ProvidedDataReader implements DataReader> {
@Override
public Object[][] readData(Class extends Provider> source) {
try {
Provider provider = source.newInstance();
return provider.provide();
} catch (InstantiationException | IllegalAccessException e) {
throw new ReaderException("Failed to Instantiate provider", e);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy