[ 
https://issues.apache.org/jira/browse/NIFI-5289?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16539413#comment-16539413
 ] 

ASF subversion and git services commented on NIFI-5289:
-------------------------------------------------------

Commit eaef91fabb0eb9bcead624fe60d312b47be70451 in nifi's branch 
refs/heads/master from [~mapayne]
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=eaef91f ]

NIFI-5289 - Changed nifi-mock junit Dependency Scope

Resolves NoClassDefFoundError for org.junit.Assert when using nifi-mock.

Signed-off-by: Matthew Burgess <[email protected]>

This closes #2780


> NoClassDefFoundError for org.junit.Assert When Using nifi-mock
> --------------------------------------------------------------
>
>                 Key: NIFI-5289
>                 URL: https://issues.apache.org/jira/browse/NIFI-5289
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>            Reporter: Martin Payne
>            Priority: Minor
>             Fix For: 1.8.0
>
>
> When using the NiFi Mock framework but not using JUnit 4, tests fail with a 
> NoClassDefFoundError for org.junit.Assert. This is because nifi-mock sets the 
> scope of junit to "provided", which means it's not pulled into consuming 
> projects as a transitive dependency. It should be set to "compile" so that 
> users don't have to set an explicit JUnit dependency in their projects.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to