use of org.sonatype.aether.repository.LocalArtifactRequest in project sonatype-aether by sonatype.
the class EnhancedLocalRepositoryManagerTest method testDoNotFindDeletedFile.
@Test
public void testDoNotFindDeletedFile() throws Exception {
addLocalArtifact(artifact);
assertTrue("could not delete artifact file", artifactFile.delete());
LocalArtifactRequest request = new LocalArtifactRequest(artifact, Arrays.asList(repository), testContext);
LocalArtifactResult result = manager.find(session, request);
assertFalse(result.isAvailable());
}
use of org.sonatype.aether.repository.LocalArtifactRequest in project sonatype-aether by sonatype.
the class EnhancedLocalRepositoryManagerTest method testFindRemoteArtifact.
@Test
public void testFindRemoteArtifact() throws Exception {
addRemoteArtifact(artifact);
LocalArtifactRequest request = new LocalArtifactRequest(artifact, Arrays.asList(repository), testContext);
LocalArtifactResult result = manager.find(session, request);
assertTrue(result.isAvailable());
}
Aggregations