|
38 | 38 | import static org.apache.maven.api.plugin.testing.MojoExtension.setVariableValueToObject; |
39 | 39 | import static org.junit.jupiter.api.Assertions.assertEquals; |
40 | 40 | import static org.mockito.ArgumentMatchers.anyString; |
| 41 | +import static org.mockito.Mockito.never; |
41 | 42 | import static org.mockito.Mockito.times; |
42 | 43 | import static org.mockito.Mockito.verify; |
43 | 44 | import static org.mockito.Mockito.when; |
@@ -86,7 +87,7 @@ void testEvaluateWithoutExpression(EvaluateMojo mojo) throws Exception { |
86 | 87 | String ls = System.lineSeparator(); |
87 | 88 |
|
88 | 89 | verify(log).info(ls + "My result"); |
89 | | - verify(log, times(0)).warn(anyString()); |
| 90 | + verify(log, never()).warn(anyString()); |
90 | 91 | verify(expressionEvaluator).evaluate("${project.groupId}"); |
91 | 92 | verify(inputHandler, times(2)).readLine(); |
92 | 93 | } |
@@ -145,7 +146,7 @@ void testEvaluateForComplexExpression(EvaluateMojo mojo) throws Exception { |
145 | 146 |
|
146 | 147 | String stdResult = baos.toString(); |
147 | 148 | assertEquals("project_groupId=org.apache.maven.its.help", stdResult); |
148 | | - verify(log, times(0)).warn(anyString()); |
| 149 | + verify(log, never()).warn(anyString()); |
149 | 150 | } |
150 | 151 |
|
151 | 152 | /** |
@@ -181,6 +182,6 @@ void testEvaluateQuiteModeWithOutputOnStdout(EvaluateMojo mojo) throws Exception |
181 | 182 |
|
182 | 183 | String stdResult = baos.toString(); |
183 | 184 | assertEquals("org.apache.maven.its.help", stdResult); |
184 | | - verify(log, times(0)).warn(anyString()); |
| 185 | + verify(log, never()).warn(anyString()); |
185 | 186 | } |
186 | 187 | } |
0 commit comments