Uploaded image for project: 'Debezium'
  1. Debezium
  2. DBZ-9332

Mockit error in EventDispatcherTest

XMLWordPrintable

      Most of test modules in 3.2 branch fails to build due to mockito error in EventDispatcherTest. It fails with

      [ERROR] Errors: 
      [ERROR]   EventDispatcherTest ? UnnecessaryStubbing 
      Unnecessary stubbings detected in test class: EventDispatcherTest
      Clean & maintainable test code requires zero unnecessary code.
      Following stubbings are unnecessary (click to navigate to relevant line of code):
        1. -> at io.debezium.pipeline.EventDispatcherTest.dispatchEventWithoutExtendedHeaders(EventDispatcherTest.java:181)
        2. -> at io.debezium.pipeline.EventDispatcherTest.dispatchEventWithExtendedHeaders(EventDispatcherTest.java:147)
      Please remove unnecessary stubbings or use 'lenient' strictness. More info: javadoc for UnnecessaryStubbingException class.
      

      In main it's passing probably for different mockito version, but the unnecessary stubbing is there as well.

              vjuranek@redhat.com Vojtech Juranek
              vjuranek@redhat.com Vojtech Juranek
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: