[ 
https://issues.apache.org/jira/browse/NIFI-15769?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Daniel Stieglitz updated NIFI-15769:
------------------------------------
    Description: 
The {{org.mockito.MockSettings}} {{lenient}} method has been deprecated and per 
the 
[javadocs|https://javadoc.io/doc/org.mockito/mockito-core/latest/org.mockito/org/mockito/MockSettings.html]
 the strictness method should be used instead.

 

 
{code:java}
2026-03-29T11:03:44.4094900Z [WARNING] 
/home/runner/work/nifi/nifi/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/test/java/org/apache/nifi/web/connector/StandardNiFiConnectorWebContextTest.java:[107,101]
 [deprecation] lenient() in MockSettings has been deprecated{code}
 

  was:
The {{org. mockito. MockSettings}} {{lenient}} method has been deprecated and 
per the 
[javadocs|https://javadoc.io/doc/org.mockito/mockito-core/latest/org.mockito/org/mockito/MockSettings.html]
 the strictness method should be used instead.

 

 
{code:java}
2026-03-29T11:03:44.4094900Z [WARNING] 
/home/runner/work/nifi/nifi/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/test/java/org/apache/nifi/web/connector/StandardNiFiConnectorWebContextTest.java:[107,101]
 [deprecation] lenient() in MockSettings has been deprecated{code}
 


> Replace deprecated org.mockito.MockSettings lenient method with API suggested 
> strictness method
> -----------------------------------------------------------------------------------------------
>
>                 Key: NIFI-15769
>                 URL: https://issues.apache.org/jira/browse/NIFI-15769
>             Project: Apache NiFi
>          Issue Type: Improvement
>            Reporter: Daniel Stieglitz
>            Assignee: Daniel Stieglitz
>            Priority: Minor
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> The {{org.mockito.MockSettings}} {{lenient}} method has been deprecated and 
> per the 
> [javadocs|https://javadoc.io/doc/org.mockito/mockito-core/latest/org.mockito/org/mockito/MockSettings.html]
>  the strictness method should be used instead.
>  
>  
> {code:java}
> 2026-03-29T11:03:44.4094900Z [WARNING] 
> /home/runner/work/nifi/nifi/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/test/java/org/apache/nifi/web/connector/StandardNiFiConnectorWebContextTest.java:[107,101]
>  [deprecation] lenient() in MockSettings has been deprecated{code}
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to