Class Classpath


  • @Deprecated
    public class Classpath
    extends Object
    Deprecated.
    Please use confluence-test-utils module instead. See {com.atlassian.confluence.test.plugin.Classpath} alternative
    Provides access to resources on the integration test classpath.
    • Constructor Detail

      • Classpath

        public Classpath()
        Deprecated.
    • Method Detail

      • getFile

        public static File getFile​(String resourcePath)
        Deprecated.
        Loads a resource from the classpath into a temporary file and returns that file.
        Returns:
        a File containing the contents of the classpath resource.
        Throws:
        RuntimeException - if an error occurred copying the classpath resource to a temporary location
      • getBytes

        public static byte[] getBytes​(String resourcePath)
        Deprecated.
        Returns a byte array with the data from a classpath resource.
        Returns:
        a byte array with the contents of the classpath resource.
        Throws:
        RuntimeException - if an error occurred loading the classpath resource
      • getResourceAsStream

        public static InputStream getResourceAsStream​(String resourcePath)
        Deprecated.
      • getResource

        public static URL getResource​(String resourcePath)
        Deprecated.
      • resourceExists

        public static boolean resourceExists​(String path)
        Deprecated.