Interface Resource

All Superinterfaces:
Resource

@API(status=DEPRECATED, since="6.0") @Deprecated(since="6.0", forRemoval=true) public interface Resource extends Resource
Deprecated, for removal: This API element is subject to removal in a future version.
Please use Resource instead.
Resource represents a resource on the classpath.

WARNING: a Resource must provide correct equals and hashCode implementations since a Resource may potentially be stored in a collection or map.

Since:
1.11
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    static Resource
    of(Resource resource)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Create a new Resource from the supplied Resource.

    Methods inherited from interface org.junit.platform.commons.io.Resource

    getInputStream, getName, getUri
  • Method Details

    • of

      static Resource of(Resource resource)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Create a new Resource from the supplied Resource.
      Parameters:
      resource - the resource to copy attributes from; never null
      Returns:
      a new Resource
      Since:
      6.0