Skip to content

Commit 7644892

Browse files
authored
Merge pull request #2077 from nothingzhl/deprecated_code
Replace deprecated Mockito.verifyZeroInteractions with verifyNoInteractions
2 parents f587031 + d82eaae commit 7644892

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/java/org/apache/ibatis/executor/statement/BaseStatementHandlerTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2009-2019 the original author or authors.
2+
* Copyright 2009-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -19,7 +19,7 @@
1919
import static org.mockito.Mockito.never;
2020
import static org.mockito.Mockito.reset;
2121
import static org.mockito.Mockito.verify;
22-
import static org.mockito.Mockito.verifyZeroInteractions;
22+
import static org.mockito.Mockito.verifyNoInteractions;
2323

2424
import java.sql.SQLException;
2525
import java.sql.Statement;
@@ -61,7 +61,7 @@ void notSpecifyTimeout() throws SQLException {
6161
BaseStatementHandler handler = new SimpleStatementHandler(null, mappedStatementBuilder.build(), null, null, null, null);
6262
handler.setStatementTimeout(statement, null);
6363

64-
verifyZeroInteractions(statement); // not apply anything
64+
verifyNoInteractions(statement); // not apply anything
6565
}
6666

6767
@Test

0 commit comments

Comments
 (0)