use of org.sonatype.aether.test.impl.TestRepositorySystemSession in project sonatype-aether by sonatype.
the class DefaultRemoteRepositoryManagerTest method setup.
@Before
public void setup() throws Exception {
session = new TestRepositorySystemSession();
session.setChecksumPolicy(null);
session.setUpdatePolicy(null);
manager = new DefaultRemoteRepositoryManager(new SysoutLogger(), new StubUpdateCheckManager(), null);
}
use of org.sonatype.aether.test.impl.TestRepositorySystemSession in project sonatype-aether by sonatype.
the class DefaultUpdateCheckManagerTest method setup.
@Before
public void setup() throws Exception {
File dir = TestFileUtils.createTempFile("");
TestFileUtils.delete(dir);
File metadataFile = new File(dir, "metadata.txt");
TestFileUtils.write("metadata", metadataFile);
File artifactFile = new File(dir, "artifact.txt");
TestFileUtils.write("artifact", artifactFile);
session = new TestRepositorySystemSession();
repository = new RemoteRepository("id", "default", TestFileUtils.createTempDir().toURL().toString());
manager = new DefaultUpdateCheckManager();
metadata = new StubMetadata("gid", "aid", "ver", "maven-metadata.xml", Metadata.Nature.RELEASE_OR_SNAPSHOT, metadataFile);
artifact = new StubArtifact("gid", "aid", "", "ext", "ver").setFile(artifactFile);
}
Aggregations