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 String
readContent
(Path source) Read the content from the specifiedsource
.
-
Method Details
-
readAllLines
-
readContent
Read the content from the specifiedsource
. Check the givensource
is a regular file.- Parameters:
source
- a text file- Returns:
- the content of the file
-