Class TestUtils

java.lang.Object
org.eclipse.aether.internal.test.util.TestUtils

public class TestUtils extends Object
Utility methods to help unit testing.
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.eclipse.aether.collection.DependencyCollectionContext
    newCollectionContext(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.artifact.Artifact artifact, org.eclipse.aether.graph.Dependency dependency, List<org.eclipse.aether.graph.Dependency> managedDependencies)
    Creates a new dependency collection context.
    static org.eclipse.aether.collection.DependencyCollectionContext
    newCollectionContext(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.graph.Dependency dependency, List<org.eclipse.aether.graph.Dependency> managedDependencies)
    Creates a new dependency collection context.
    static org.eclipse.aether.DefaultRepositorySystemSession
    Creates a new repository session whose local repository manager is initialized with an instance of TestLocalRepositoryManager.
    static org.eclipse.aether.collection.DependencyGraphTransformationContext
    newTransformationContext(org.eclipse.aether.RepositorySystemSession session)
    Creates a new dependency graph transformation context.
    static org.eclipse.aether.collection.VersionFilter.VersionFilterContext
    newVersionFilterContext(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.resolution.VersionRangeResult rangeResult)
    Creates a new version filter context from the specified session and version range result.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • newSession

      public static org.eclipse.aether.DefaultRepositorySystemSession newSession()
      Creates a new repository session whose local repository manager is initialized with an instance of TestLocalRepositoryManager.
    • newCollectionContext

      public static org.eclipse.aether.collection.DependencyCollectionContext newCollectionContext(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.graph.Dependency dependency, List<org.eclipse.aether.graph.Dependency> managedDependencies)
      Creates a new dependency collection context.
    • newCollectionContext

      public static org.eclipse.aether.collection.DependencyCollectionContext newCollectionContext(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.artifact.Artifact artifact, org.eclipse.aether.graph.Dependency dependency, List<org.eclipse.aether.graph.Dependency> managedDependencies)
      Creates a new dependency collection context.
    • newTransformationContext

      public static org.eclipse.aether.collection.DependencyGraphTransformationContext newTransformationContext(org.eclipse.aether.RepositorySystemSession session)
      Creates a new dependency graph transformation context.
    • newVersionFilterContext

      public static org.eclipse.aether.collection.VersionFilter.VersionFilterContext newVersionFilterContext(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.resolution.VersionRangeResult rangeResult)
      Creates a new version filter context from the specified session and version range result.