Class TestUtils
java.lang.Object
org.eclipse.aether.internal.test.util.TestUtils
Utility methods to help unit testing.
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 ofTestLocalRepositoryManager
.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.
-
Method Details
-
newSession
Creates a new repository session whose local repository manager is initialized with an instance ofTestLocalRepositoryManager
. -
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.
-