public class ArtifactResolverTest extends AbstractArtifactComponentTestCase
artifactFactory, artifactRepositoryFactory
Constructor and Description |
---|
ArtifactResolverTest() |
Modifier and Type | Method and Description |
---|---|
protected String |
component() |
protected Artifact |
createArtifact(String groupId,
String artifactId,
String version,
String type) |
void |
setUp() |
void |
testResolutionFailureWhenArtifactNotPresentInRemoteRepository() |
void |
testResolutionOfAnArtifactWhereOneRemoteRepositoryIsBadButOneIsGood() |
void |
testResolutionOfASingleArtifactWhereTheArtifactIsNotPresentLocallyAndMustBeRetrievedFromTheRemoteRepository() |
void |
testResolutionOfASingleArtifactWhereTheArtifactIsPresentInTheLocalRepository() |
void |
testTransitiveResolutionOrder() |
void |
testTransitiveResolutionWhereAllArtifactsAreNotPresentInTheLocalRepositoryAndMustBeRetrievedFromTheRemoteRepository() |
void |
testTransitiveResolutionWhereAllArtifactsArePresentInTheLocalRepository() |
assertLocalArtifactNotPresent, assertLocalArtifactPresent, assertRemoteArtifactNotPresent, assertRemoteArtifactPresent, badLocalRepository, badRemoteRepository, createArtifact, createArtifact, createArtifact, createLocalArtifact, createLocalArtifact, createRemoteArtifact, createRemoteArtifact, deleteArtifact, deleteLocalArtifact, getContainer, getRepositoryLayout, initRepoSession, localRepository, remoteRepositories, remoteRepository
@BeforeEach public void setUp() throws Exception
setUp
in class AbstractArtifactComponentTestCase
Exception
protected String component()
component
in class AbstractArtifactComponentTestCase
@Test public void testResolutionOfASingleArtifactWhereTheArtifactIsPresentInTheLocalRepository() throws Exception
Exception
@Test public void testResolutionOfASingleArtifactWhereTheArtifactIsNotPresentLocallyAndMustBeRetrievedFromTheRemoteRepository() throws Exception
Exception
protected Artifact createArtifact(String groupId, String artifactId, String version, String type) throws Exception
createArtifact
in class AbstractArtifactComponentTestCase
Exception
@Test public void testTransitiveResolutionWhereAllArtifactsArePresentInTheLocalRepository() throws Exception
Exception
@Test public void testTransitiveResolutionWhereAllArtifactsAreNotPresentInTheLocalRepositoryAndMustBeRetrievedFromTheRemoteRepository() throws Exception
Exception
@Test public void testResolutionFailureWhenArtifactNotPresentInRemoteRepository() throws Exception
Exception
@Test public void testResolutionOfAnArtifactWhereOneRemoteRepositoryIsBadButOneIsGood() throws Exception
Exception
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.