Top Description Methods
org.junit.platform.commons.support

public Interface Resource

extends Resource
Known Direct Implementers
org.junit.platform.commons.support.DefaultResource
Annotations
@SuppressWarnings:removal
@API
status:DEPRECATED
since:1.14
@Deprecated
since:1.14
forRemoval:true
Static Imports
org.apiguardian.api.API.Status.DEPRECATED

Deprecated

for removal since 1.14.

Please use org.junit.platform.commons.io.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
ReflectionSupport#findAllResourcesInClasspathRoot(URI, Predicate), ReflectionSupport#findAllResourcesInPackage(String, Predicate), ReflectionSupport#findAllResourcesInModule(String, Predicate), ReflectionSupport#streamAllResourcesInClasspathRoot(URI, Predicate), ReflectionSupport#streamAllResourcesInPackage(String, Predicate), ReflectionSupport#streamAllResourcesInModule(String, Predicate)

Method Summary

Modifier and TypeMethod and Description
public static Resource

Returns:

a new Resource
of
(Resource
the resource to copy attributes from; never null
resource
)
References Deprecated Resource is deprecated or references (maybe indirectly) at least one deprecated element.

Create a new Resource from the supplied org.junit.platform.commons.io.Resource.

Inherited from org.junit.platform.commons.io.Resource:
getInputStreamgetNamegetUriof

Method Detail

ofback to summary
public static Resource of(Resource resource)

References Deprecated

Resource is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Create a new Resource from the supplied org.junit.platform.commons.io.Resource.

Parameters
resource:Resource

the resource to copy attributes from; never null

Returns:Resource

a new Resource

Since
1.14