Class TextTestUtils

java.lang.Object
io.spring.initializr.generator.test.io.TextTestUtils

public final class TextTestUtils extends Object
Text content related test utilities.
Author:
Stephane Nicoll
  • Method Details

    • readAllLines

      public static List<String> readAllLines(String source)
    • readContent

      public static String readContent(Path source)
      Read the content from the specified source. Check the given source is a regular file.
      Parameters:
      source - a text file
      Returns:
      the content of the file