You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2019/03/07 05:28:00 UTC
[jira] [Commented] (NIFI-3685) Azure EventHub processor tests fail
[ https://issues.apache.org/jira/browse/NIFI-3685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16786400#comment-16786400 ]
ASF subversion and git services commented on NIFI-3685:
-------------------------------------------------------
Commit d53cefa2a75d47b5e75c6fb55e86bada759cce79 in nifi's branch refs/heads/master from Ferenc Szabó
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=d53cefa ]
NIFI-3685 Azure EventHub processor tests fail
Moved test classes into the proper folder.
Fixed outdated mocking and added assertions that actually tests the content.
This closes #3346.
Signed-off-by: Koji Kawamura <ij...@apache.org>
> Azure EventHub processor tests fail
> -----------------------------------
>
> Key: NIFI-3685
> URL: https://issues.apache.org/jira/browse/NIFI-3685
> Project: Apache NiFi
> Issue Type: Bug
> Components: Extensions
> Affects Versions: 1.1.1
> Reporter: Jeff Storck
> Assignee: Ferenc Szabo
> Priority: Major
> Time Spent: 20m
> Remaining Estimate: 0h
>
> GetAzureEventHubTest fails with the following exception:
> {quote}
> -------------------------------------------------------
> T E S T S
> -------------------------------------------------------
> Running org.apache.nifi.processors.azure.eventhub.GetAzureEventHubTest
> Tests run: 6, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.22 sec <<< FAILURE! - in org.apache.nifi.processors.azure.eventhub.GetAzureEventHubTest
> testNormalFlow(org.apache.nifi.processors.azure.eventhub.GetAzureEventHubTest) Time elapsed: 0.195 sec <<< FAILURE!
> java.lang.AssertionError: org.powermock.reflect.exceptions.FieldNotFoundException: No instance field named "isReceivedEvent" could be found in the class hierarchy of com.microsoft.azure.eventhubs.EventData.
> at org.apache.nifi.util.StandardProcessorTestRunner.run(StandardProcessorTestRunner.java:193)
> at org.apache.nifi.util.StandardProcessorTestRunner.run(StandardProcessorTestRunner.java:152)
> at org.apache.nifi.util.StandardProcessorTestRunner.run(StandardProcessorTestRunner.java:147)
> at org.apache.nifi.processors.azure.eventhub.GetAzureEventHubTest.testNormalFlow(GetAzureEventHubTest.java:108)
> Caused by: org.powermock.reflect.exceptions.FieldNotFoundException: No instance field named "isReceivedEvent" could be found in the class hierarchy of com.microsoft.azure.eventhubs.EventData.
> at org.powermock.reflect.internal.matcherstrategies.FieldNameMatcherStrategy.notFound(FieldNameMatcherStrategy.java:40)
> at org.powermock.reflect.internal.WhiteboxImpl.findSingleFieldUsingStrategy(WhiteboxImpl.java:492)
> at org.powermock.reflect.internal.WhiteboxImpl.findFieldInHierarchy(WhiteboxImpl.java:445)
> at org.powermock.reflect.internal.WhiteboxImpl.findFieldInHierarchy(WhiteboxImpl.java:433)
> at org.powermock.reflect.internal.WhiteboxImpl.setInternalState(WhiteboxImpl.java:294)
> at org.powermock.reflect.Whitebox.setInternalState(Whitebox.java:174)
> at org.apache.nifi.processors.azure.eventhub.GetAzureEventHubTest$MockGetAzureEventHub.receiveEvents(GetAzureEventHubTest.java:144)
> at org.apache.nifi.processors.azure.eventhub.GetAzureEventHub.onTrigger(GetAzureEventHub.java:316)
> at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27)
> at org.apache.nifi.util.StandardProcessorTestRunner$RunProcessor.call(StandardProcessorTestRunner.java:243)
> at org.apache.nifi.util.StandardProcessorTestRunner$RunProcessor.call(StandardProcessorTestRunner.java:237)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
> Running org.apache.nifi.processors.azure.eventhub.PutAzureEventHubTest
> Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec - in org.apache.nifi.processors.azure.eventhub.PutAzureEventHubTest
> Results :
> Failed tests:
> GetAzureEventHubTest.testNormalFlow:108 org.powermock.reflect.exceptions.FieldNotFoundException: No instance field named "isReceivedEvent" could be found in the class hierarchy of com.microsoft.azure.eventhubs.EventData.
> {quote}
> The tests for the processors also need to be moved to src/test/java (currently in src/test) so that the tests are detected during the build.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)