Class TestIoUtil

java.lang.Object
org.eluder.coveralls.maven.plugin.util.TestIoUtil

public final class TestIoUtil extends Object
The Class TestIoUtil.
  • Method Details

    • writeFileContent

      public static void writeFileContent(String content, File file) throws IOException
      Write file content.
      Parameters:
      content - the content
      file - the file
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • readFileContent

      public static String readFileContent(File file) throws IOException
      Read file content.
      Parameters:
      file - the file
      Returns:
      the string
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • getFile

      public static File getFile(String resource)
      Gets the file.
      Parameters:
      resource - the resource
      Returns:
      the file
    • getSha512DigestHex

      public static String getSha512DigestHex(String content)
      Gets the sha 512 digest hex.
      Parameters:
      content - the content
      Returns:
      the sha 512 digest hex