Interface TestResourceProvider

    • Method Detail

      • getResourceNames

        TestResource[] getResourceNames()
        Returns all known resource names.
        Returns:
      • openResource

        java.io.InputStream openResource​(TestResource aResourceName)
                                  throws java.io.IOException
        Opens a specific named resource. This should return an InputStream at the start of the data of the respective resources, and it is only expected to work if the resource is one of those enumerated by a call to getResourceNames().
        Parameters:
        aResourceName - the resource to be opened
        Returns:
        an InputStream to read the resource
        Throws:
        java.io.IOException
      • closeResource

        void closeResource​(TestResource aResourceName,
                           java.io.InputStream aResourceStream)
                    throws java.io.IOException
        Closes a specified resources' stream (and all the stuff opened for this stream in the background).
        Parameters:
        aResourceName - the resource to be closed
        aResourceStream - the resource stream to close
        Throws:
        java.io.IOException
      • getClassLoader

        java.lang.ClassLoader getClassLoader()
        Returns the classloader to use for all dynamic class resolving needs.
        Returns:
        the classloader to use