@@ -57,7 +57,7 @@ class RequireReleaseDepsTest {
57
57
private MavenSession session ;
58
58
59
59
@ Mock
60
- private ResolveUtil resolveUtil ;
60
+ private ResolverUtil resolverUtil ;
61
61
62
62
@ InjectMocks
63
63
private RequireReleaseDeps rule ;
@@ -76,12 +76,12 @@ void testSearchNonTransitive() throws IOException {
76
76
77
77
assertThatCode (rule ::execute ).doesNotThrowAnyException ();
78
78
79
- verifyNoInteractions (resolveUtil );
79
+ verifyNoInteractions (resolverUtil );
80
80
}
81
81
82
82
@ Test
83
83
void testSearchTransitiveMultipleFailures () throws Exception {
84
- when (resolveUtil .resolveTransitiveDependenciesVerbose (anyList ()))
84
+ when (resolverUtil .resolveTransitiveDependenciesVerbose (anyList ()))
85
85
.thenReturn (getDependencyNodeWithMultipleSnapshots ());
86
86
rule .setSearchTransitive (true );
87
87
@@ -96,7 +96,7 @@ void testSearchTransitiveMultipleFailures() throws Exception {
96
96
@ Test
97
97
void testSearchTransitiveNoFailures () throws Exception {
98
98
when (session .getCurrentProject ()).thenReturn (project );
99
- when (resolveUtil .resolveTransitiveDependenciesVerbose (anyList ()))
99
+ when (resolverUtil .resolveTransitiveDependenciesVerbose (anyList ()))
100
100
.thenReturn (new DependencyNodeBuilder ().build ());
101
101
102
102
rule .setSearchTransitive (true );
@@ -111,13 +111,13 @@ void testShouldFailOnlyWhenRelease() throws Exception {
111
111
112
112
assertThatCode (rule ::execute ).doesNotThrowAnyException ();
113
113
114
- verifyNoInteractions (resolveUtil );
114
+ verifyNoInteractions (resolverUtil );
115
115
}
116
116
117
117
@ Test
118
118
void testWildcardExcludeTests () throws Exception {
119
119
when (session .getCurrentProject ()).thenReturn (project );
120
- when (resolveUtil .resolveTransitiveDependenciesVerbose (anyList ()))
120
+ when (resolverUtil .resolveTransitiveDependenciesVerbose (anyList ()))
121
121
.thenReturn (getDependencyNodeWithMultipleTestSnapshots ());
122
122
123
123
rule .setExcludes (Collections .singletonList ("*:*:*:*:test" ));
@@ -129,7 +129,7 @@ void testWildcardExcludeTests() throws Exception {
129
129
@ Test
130
130
void testWildcardExcludeAll () throws Exception {
131
131
when (session .getCurrentProject ()).thenReturn (project );
132
- when (resolveUtil .resolveTransitiveDependenciesVerbose (anyList ()))
132
+ when (resolverUtil .resolveTransitiveDependenciesVerbose (anyList ()))
133
133
.thenReturn (getDependencyNodeWithMultipleTestSnapshots ());
134
134
135
135
rule .setExcludes (Collections .singletonList ("*" ));
@@ -140,7 +140,7 @@ void testWildcardExcludeAll() throws Exception {
140
140
141
141
@ Test
142
142
void testExcludesAndIncludes () throws Exception {
143
- when (resolveUtil .resolveTransitiveDependenciesVerbose (anyList ()))
143
+ when (resolverUtil .resolveTransitiveDependenciesVerbose (anyList ()))
144
144
.thenReturn (getDependencyNodeWithMultipleTestSnapshots ());
145
145
146
146
rule .setExcludes (Collections .singletonList ("*" ));
@@ -167,7 +167,7 @@ void testId() {
167
167
void testFailWhenParentIsSnapshot () throws Exception {
168
168
when (session .getCurrentProject ()).thenReturn (project );
169
169
when (project .getParentArtifact ()).thenReturn (ARTIFACT_STUB_FACTORY .getSnapshotArtifact ());
170
- when (resolveUtil .resolveTransitiveDependenciesVerbose (anyList ()))
170
+ when (resolverUtil .resolveTransitiveDependenciesVerbose (anyList ()))
171
171
.thenReturn (new DependencyNodeBuilder ().build ());
172
172
173
173
rule .setFailWhenParentIsSnapshot (true );
@@ -181,7 +181,7 @@ void testFailWhenParentIsSnapshot() throws Exception {
181
181
void parentShouldBeExcluded () throws Exception {
182
182
when (session .getCurrentProject ()).thenReturn (project );
183
183
when (project .getParentArtifact ()).thenReturn (ARTIFACT_STUB_FACTORY .getSnapshotArtifact ());
184
- when (resolveUtil .resolveTransitiveDependenciesVerbose (anyList ()))
184
+ when (resolverUtil .resolveTransitiveDependenciesVerbose (anyList ()))
185
185
.thenReturn (new DependencyNodeBuilder ().build ());
186
186
187
187
rule .setFailWhenParentIsSnapshot (true );
0 commit comments