Class Classpath
- java.lang.Object
-
- com.atlassian.confluence.it.resource.Classpath
-
@Deprecated public class Classpath extends Object
Deprecated.Please use confluence-test-utils module instead. See {com.atlassian.confluence.test.plugin.Classpath} alternativeProvides access to resources on the integration test classpath.
-
-
Constructor Summary
Constructors Constructor Description Classpath()
Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static byte[]
getBytes(String resourcePath)
Deprecated.Returns a byte array with the data from a classpath resource.static File
getFile(String resourcePath)
Deprecated.Loads a resource from the classpath into a temporary file and returns that file.static URL
getResource(String resourcePath)
Deprecated.static InputStream
getResourceAsStream(String resourcePath)
Deprecated.static boolean
resourceExists(String path)
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.
-
resourceExists
public static boolean resourceExists(String path)
Deprecated.
-
-