mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Remove unnecessary stubbing
This commit is contained in:
parent
de32fab324
commit
9ff946bafa
@ -134,11 +134,8 @@ class ArtifactsLibrariesTests {
|
||||
@Test
|
||||
void libraryCoordinatesVersionUsesBaseVersionOfArtifact() throws IOException {
|
||||
Artifact snapshotArtifact = mock(Artifact.class);
|
||||
given(snapshotArtifact.getType()).willReturn("jar");
|
||||
given(snapshotArtifact.getScope()).willReturn("compile");
|
||||
given(snapshotArtifact.getGroupId()).willReturn("g1");
|
||||
given(snapshotArtifact.getArtifactId()).willReturn("artifact");
|
||||
given(snapshotArtifact.getVersion()).willReturn("1.0-20200929.090327-28");
|
||||
given(snapshotArtifact.getBaseVersion()).willReturn("1.0-SNAPSHOT");
|
||||
given(snapshotArtifact.getFile()).willReturn(new File("a"));
|
||||
given(snapshotArtifact.getArtifactHandler()).willReturn(this.artifactHandler);
|
||||
|
Loading…
Reference in New Issue
Block a user