use of org.sonatype.aether.impl.UpdateCheckManager in project sonatype-aether by sonatype.
the class DefaultArtifactResolverTest method setup.
@Before
public void setup() throws IOException {
UpdateCheckManager updateCheckManager = new StaticUpdateCheckManager(true);
remoteRepositoryManager = new StubRemoteRepositoryManager();
VersionResolver versionResolver = new StubVersionResolver();
session = new TestRepositorySystemSession();
lrm = (TestLocalRepositoryManager) session.getLocalRepositoryManager();
resolver = new DefaultArtifactResolver(NullLogger.INSTANCE, TestFileProcessor.INSTANCE, new StubRepositoryEventDispatcher(), versionResolver, updateCheckManager, remoteRepositoryManager, new StubSyncContextFactory());
artifact = new StubArtifact("gid", "aid", "", "ext", "ver");
connector = new RecordingRepositoryConnector();
remoteRepositoryManager.setConnector(connector);
}
use of org.sonatype.aether.impl.UpdateCheckManager in project sonatype-aether by sonatype.
the class DefaultDeployerTest method setup.
@Before
public void setup() throws IOException {
artifact = new DefaultArtifact("gid", "aid", "jar", "ver");
artifact = artifact.setFile(TestFileUtils.createTempFile("artifact"));
metadata = new DefaultMetadata("gid", "aid", "ver", "type", Nature.RELEASE_OR_SNAPSHOT, TestFileUtils.createTempFile("metadata"));
session = new TestRepositorySystemSession();
manager = new StubRemoteRepositoryManager();
deployer = new DefaultDeployer();
deployer.setRemoteRepositoryManager(manager);
deployer.setRepositoryEventDispatcher(new StubRepositoryEventDispatcher());
UpdateCheckManager updateCheckManager = new StaticUpdateCheckManager(true);
deployer.setUpdateCheckManager(updateCheckManager);
deployer.setFileProcessor(TestFileProcessor.INSTANCE);
deployer.setSyncContextFactory(new StubSyncContextFactory());
request = new DeployRequest();
request.setRepository(new RemoteRepository("id", "default", "file:///"));
connector = new RecordingRepositoryConnector();
manager.setConnector(connector);
listener = new RecordingRepositoryListener();
session.setRepositoryListener(listener);
}
Aggregations