Class ResourceUtils

java.lang.Object
org.junit.platform.commons.util.ResourceUtils

@API(status=INTERNAL, since="1.12") public final class ResourceUtils extends Object
Collection of static utility methods for working with resources.
Since:
1.3 (originally in org.junit.platform.engine.support.descriptor)
  • Method Details

    • stripQueryComponent

      public static URI stripQueryComponent(URI uri)
      Strip the query component from the supplied URI.
      Parameters:
      uri - the URI from which to strip the query component
      Returns:
      a new URI with the query component removed, or the original URI unmodified if it does not have a query component
      Since:
      1.3