Skip to content

Commit

Permalink
Fix in the Javadoc for "Mocking object construction" (#2145)
Browse files Browse the repository at this point in the history
This is a suggestion for changing the documentation for "Mocking object
construction".  Previously, the documentation has suggested that
MockedConstruction can define mock behavior and to verify static method
invocations.  However, it is meant for defining mock behavior and verifying
non-static method invocations.
  • Loading branch information
kroening committed Jan 3, 2021
1 parent 7d45fcd commit 1da75c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/mockito/Mockito.java
Original file line number Diff line number Diff line change
Expand Up @@ -1582,7 +1582,7 @@
* </code></pre>
*
* Due to the defined scope of the mocked construction, object construction returns to its original behavior once the scope is
* released. To define mock behavior and to verify static method invocations, use the <code>MockedConstruction</code> that is returned.
* released. To define mock behavior and to verify method invocations, use the <code>MockedConstruction</code> that is returned.
* <p>
*/
@SuppressWarnings("unchecked")
Expand Down

0 comments on commit 1da75c2

Please sign in to comment.