Class DefaultResource

java.lang.Object
org.junit.platform.commons.support.DefaultResource
All Implemented Interfaces:
Resource

@API(status=INTERNAL, since="1.12") public class DefaultResource extends Object implements Resource

DISCLAIMER

These utilities are intended solely for usage within the JUnit framework itself. Any usage by external parties is not supported. Use at your own risk!

Since:
1.11
  • Constructor Details

    • DefaultResource

      public DefaultResource(String name, URI uri)
  • Method Details

    • getName

      public String getName()
      Description copied from interface: Resource
      Get the resource name.

      The resource name is a /-separated path. The path is relative to the classpath root in which the resource is located.

      Specified by:
      getName in interface Resource
      Returns:
      the resource name; never null
    • getUri

      public URI getUri()
      Description copied from interface: Resource
      Get URI to a resource.
      Specified by:
      getUri in interface Resource
      Returns:
      the uri of the resource; never null
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object