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