use of org.sonatype.aether.test.util.impl.StubArtifact in project sonatype-aether by sonatype.
the class ResumeGetTest method before.
@Before
public void before() throws Exception {
factory = new AsyncRepositoryConnectorFactory(new SysoutLogger(), new TestFileProcessor());
session = new TestRepositorySystemSession();
artifact = new StubArtifact("gid", "aid", "classifier", "extension", "version");
server = new Server(0);
}
use of org.sonatype.aether.test.util.impl.StubArtifact 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);
}
Aggregations