Class TextTestUtils
java.lang.Object
io.spring.initializr.generator.test.io.TextTestUtils
Text content related test utilities.
- Author:
- Stephane Nicoll
-
Method Summary
Modifier and TypeMethodDescriptionreadAllLines(String source) static StringreadContent(Path source) Read the content from the specifiedsource.
-
Method Details
-
readAllLines
-
readContent
Read the content from the specifiedsource. Check the givensourceis a regular file.- Parameters:
source- a text file- Returns:
- the content of the file
-