Remove unnecessary stubbing

pull/23561/head
Stephane Nicoll 4 years ago
parent de32fab324
commit 9ff946bafa

@ -134,11 +134,8 @@ class ArtifactsLibrariesTests {
@Test @Test
void libraryCoordinatesVersionUsesBaseVersionOfArtifact() throws IOException { void libraryCoordinatesVersionUsesBaseVersionOfArtifact() throws IOException {
Artifact snapshotArtifact = mock(Artifact.class); Artifact snapshotArtifact = mock(Artifact.class);
given(snapshotArtifact.getType()).willReturn("jar");
given(snapshotArtifact.getScope()).willReturn("compile"); given(snapshotArtifact.getScope()).willReturn("compile");
given(snapshotArtifact.getGroupId()).willReturn("g1");
given(snapshotArtifact.getArtifactId()).willReturn("artifact"); given(snapshotArtifact.getArtifactId()).willReturn("artifact");
given(snapshotArtifact.getVersion()).willReturn("1.0-20200929.090327-28");
given(snapshotArtifact.getBaseVersion()).willReturn("1.0-SNAPSHOT"); given(snapshotArtifact.getBaseVersion()).willReturn("1.0-SNAPSHOT");
given(snapshotArtifact.getFile()).willReturn(new File("a")); given(snapshotArtifact.getFile()).willReturn(new File("a"));
given(snapshotArtifact.getArtifactHandler()).willReturn(this.artifactHandler); given(snapshotArtifact.getArtifactHandler()).willReturn(this.artifactHandler);

Loading…
Cancel
Save