Skip to content

Commit

Permalink
Update IT method scope to private
Browse files Browse the repository at this point in the history
  • Loading branch information
gregmeldrum committed Nov 24, 2023
1 parent 008ef97 commit 84b57d5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -337,15 +337,15 @@ private void setupLogMock(List<String> logs) {
}


public static String getResourceAsString(Resource resource) {
private static String getResourceAsString(Resource resource) {
try (Reader reader = new InputStreamReader(resource.getInputStream(), UTF_8)) {
return FileCopyUtils.copyToString(reader);
} catch (IOException e) {
throw new UncheckedIOException(e);
}
}

public static List<String> getResourceAsStringArray(Resource resource) {
private static List<String> getResourceAsStringArray(Resource resource) {
try (Reader reader = new InputStreamReader(resource.getInputStream(), UTF_8)) {
return Arrays.stream(FileCopyUtils.copyToString(reader).split("\n"))
.filter(StringUtils::isNotEmpty)
Expand Down

0 comments on commit 84b57d5

Please sign in to comment.