
com.jparams.junit4.data.converter.ClassConverter 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.data.converter;
import com.jparams.junit4.reflection.MethodParameter;
public class ClassConverter implements Converter {
@Override
public Object convert(Object data, MethodParameter methodParameter) {
try {
return Class.forName(data.toString());
} catch (ClassNotFoundException e) {
throw new ConverterException("Class not found", e);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy