Class Resources

java.lang.Object
org.tribuo.tests.Resources

public final class Resources extends Object
Utils for working with classpath resources at test time.
  • Method Details

    • copyResourceToTmp

      public static Path copyResourceToTmp(String resource) throws IOException
      Copies a classpath resource to a temporary file.
      Parameters:
      resource - The resource to copy.
      Returns:
      The path of the temporary file.
      Throws:
      IOException - If the resource could not be copied.