You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Martin Payne (JIRA)" <ji...@apache.org> on 2018/06/10 19:32:00 UTC

[jira] [Created] (NIFI-5289) NoClassDefFoundError for org.junit.Assert When Using nifi-mock

Martin Payne created NIFI-5289:
----------------------------------

             Summary: 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
    Affects Versions: 1.6.0
            Reporter: Martin Payne


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)