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

Daniel Stieglitz updated NIFI-16202:
------------------------------------
    Description: 
When building nifi, the following type of warning below appears in all 
target/surefire-reports/*.output.txt files of those tests which use Mockito 
(since the redirectTestOutputToFile property in the maven-surefire-plugin is 
set to true).
{code:java}
Mockito is currently self-attaching to enable the inline-mock-maker. This will 
no longer work in future releases of the JDK. Please add Mockito as an agent to 
your build as described in Mockito's documentation: 
https://javadoc.io/doc/org.mockito/mockito-core/latest/org.mockito/org/mockito/Mockito.html#0.3{code}
Ideally we should not have this. This ticket is meant solve this the same way 
as it was solved for the nifi-api in NIFI-15999

  was:
When building nifi, the following type of warning below appears in all 
target/surefire-reports/*.output.txt files of those tests which use Mockito.
{code:java}
Mockito is currently self-attaching to enable the inline-mock-maker. This will 
no longer work in future releases of the JDK. Please add Mockito as an agent to 
your build as described in Mockito's documentation: 
https://javadoc.io/doc/org.mockito/mockito-core/latest/org.mockito/org/mockito/Mockito.html#0.3{code}
Ideally we should not have this. This ticket is meant solve this the same way 
as it was solved for the nifi-api in NIFI-15999


> Mockito warning when running nifi build
> ---------------------------------------
>
>                 Key: NIFI-16202
>                 URL: https://issues.apache.org/jira/browse/NIFI-16202
>             Project: Apache NiFi
>          Issue Type: Improvement
>            Reporter: Daniel Stieglitz
>            Assignee: Daniel Stieglitz
>            Priority: Minor
>
> When building nifi, the following type of warning below appears in all 
> target/surefire-reports/*.output.txt files of those tests which use Mockito 
> (since the redirectTestOutputToFile property in the maven-surefire-plugin is 
> set to true).
> {code:java}
> Mockito is currently self-attaching to enable the inline-mock-maker. This 
> will no longer work in future releases of the JDK. Please add Mockito as an 
> agent to your build as described in Mockito's documentation: 
> https://javadoc.io/doc/org.mockito/mockito-core/latest/org.mockito/org/mockito/Mockito.html#0.3{code}
> Ideally we should not have this. This ticket is meant solve this the same way 
> as it was solved for the nifi-api in NIFI-15999



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

Reply via email to