use of org.sonatype.aether.installation.InstallRequest in project sonatype-aether by sonatype.
the class DefaultInstallerTest method testDoNotUpdateUnchangedArtifact.
@Test
public void testDoNotUpdateUnchangedArtifact() throws InstallationException {
request.addArtifact(artifact);
installer.install(session, request);
installer.setFileProcessor(new DefaultFileProcessor() {
@Override
public long copy(File src, File target, ProgressListener listener) throws IOException {
throw new IOException("copy called");
}
});
request = new InstallRequest();
request.addArtifact(artifact);
installer.install(session, request);
}
use of org.sonatype.aether.installation.InstallRequest in project sonatype-aether by sonatype.
the class DefaultInstallerTest method checkFailedEvents.
private void checkFailedEvents(String msg, Artifact artifact) {
InstallRequest request = new InstallRequest().addArtifact(artifact);
msg = "Repository events problem (case: " + msg + ")";
try {
installer.install(session, request);
fail("expected exception");
} catch (InstallationException e) {
checkEvents(msg, artifact, true);
}
}
Aggregations