![JAR search and dependency download from the Maven repository](/logo.png)
org.yestech.test.InjectionUtil Maven / Gradle / Ivy
package org.yestech.test;
import java.lang.reflect.Field;
/**
* @author A.J. Wright
*/
public final class InjectionUtil {
private InjectionUtil() {
}
public static void inject(String field, Object o, Object value) throws Exception {
Field field1 = o.getClass().getField(field);
field1.setAccessible(true);
field1.set(o, value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy