Skip to content

Commit e54b1d0

Browse files
isidoreLarsEckartragunathjawahar
committed
F getAdjacentFile
Co-Authored-By: Lars Eckart <[email protected]> Co-Authored-By: Ragunath Jawahar <[email protected]>
1 parent 2e72257 commit e54b1d0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

approvaltests-util/src/main/java/com/spun/util/ClassUtils.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,4 +207,8 @@ public static <T> Class getGreatestCommonInterface(List<T> list)
207207
Class first = Queryable.as(allCommon).orderBy(Order.Descending, x -> x.getMethods().length).first();
208208
return first;
209209
}
210+
211+
public static File getAdjacentFile(Class<?> aClass, String relativeFileName) {
212+
return new File(getSourceDirectory(aClass), relativeFileName);
213+
}
210214
}

0 commit comments

Comments
 (0)