Skip to content

Commit

Permalink
Fix typo: filed --> field
Browse files Browse the repository at this point in the history
  • Loading branch information
elharo committed Dec 6, 2024
1 parent dccc59a commit 05395ab
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,15 @@

import org.codehaus.plexus.util.ReflectionUtils;

// TODO this should be a static utility class that does not require inheritance
abstract class AbstractTestUtil {

protected String getBasedir() {
String path = System.getProperty("basedir");
return path != null ? path : new File("").getAbsolutePath();
}

protected void setVariableValueToObject(Object object, String filed, Object value) throws IllegalAccessException {
ReflectionUtils.setVariableValueInObject(object, filed, value);
protected void setVariableValueToObject(Object object, String field, Object value) throws IllegalAccessException {
ReflectionUtils.setVariableValueInObject(object, field, value);
}
}

0 comments on commit 05395ab

Please sign in to comment.