Class TestUtils
java.lang.Object
org.eclipse.aether.internal.test.util.TestUtils
Utility methods to help unit testing.
-
Method Summary
Modifier and TypeMethodDescriptionstatic DependencyCollectionContext
newCollectionContext
(RepositorySystemSession session, Artifact artifact, Dependency dependency, List<Dependency> managedDependencies) Creates a new dependency collection context.static DependencyCollectionContext
newCollectionContext
(RepositorySystemSession session, Dependency dependency, List<Dependency> managedDependencies) Creates a new dependency collection context.Creates a new repository session whose local repository manager is initialized with an instance ofTestLocalRepositoryManager
.Creates a new dependency graph transformation context.newVersionFilterContext
(RepositorySystemSession session, 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 DependencyCollectionContext newCollectionContext(RepositorySystemSession session, Dependency dependency, List<Dependency> managedDependencies) Creates a new dependency collection context. -
newCollectionContext
public static DependencyCollectionContext newCollectionContext(RepositorySystemSession session, Artifact artifact, Dependency dependency, List<Dependency> managedDependencies) Creates a new dependency collection context. -
newTransformationContext
public static DependencyGraphTransformationContext newTransformationContext(RepositorySystemSession session) Creates a new dependency graph transformation context. -
newVersionFilterContext
public static VersionFilter.VersionFilterContext newVersionFilterContext(RepositorySystemSession session, VersionRangeResult rangeResult) Creates a new version filter context from the specified session and version range result.
-