Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Cannot Reproduce
-
0.9
-
None
Description
Error seen is this.
Running org.apache.falcon.messaging.JMSMessageConsumerTest Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 3.855 sec <<< FAILURE! - in org.apache.falcon.messaging.JMSMessageConsumerTest testJMSMessagesForOozieCoord(org.apache.falcon.messaging.JMSMessageConsumerTest) Time elapsed: 0.14 sec <<< FAILURE! org.mockito.exceptions.verification.NeverWantedButInvoked: workflowJobEndNotificationService.notifySuccess( <any> ); Never wanted here: -> at org.apache.falcon.messaging.JMSMessageConsumerTest.testJMSMessagesForOozieCoord(JMSMessageConsumerTest.java:276) But invoked here: -> at org.apache.falcon.messaging.JMSMessageConsumer.invokeListener(JMSMessageConsumer.java:221) at org.apache.falcon.messaging.JMSMessageConsumerTest.testJMSMessagesForOozieCoord(JMSMessageConsumerTest.java:276)
This was fixed by renaming @BeforeMethod from setup() to init(). The fix resulted in following error
Tests run: 3, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 3.857 sec <<< FAILURE! - in org.apache.falcon.messaging.JMSMessageConsumerTest testJMSMessagesForOozieCoord(org.apache.falcon.messaging.JMSMessageConsumerTest) Time elapsed: 0.036 sec <<< FAILURE! java.lang.AssertionError: expected:<2> but was:<3> at org.testng.Assert.fail(Assert.java:89) at org.testng.Assert.failNotEquals(Assert.java:489) at org.testng.Assert.assertEquals(Assert.java:118) at org.testng.Assert.assertEquals(Assert.java:260) at org.testng.Assert.assertEquals(Assert.java:270) at org.apache.falcon.messaging.JMSMessageConsumerTest.testJMSMessagesForOozieCoord(JMSMessageConsumerTest.java:273)