Mockito5 chained call inside MockedConstruction
I am new to Mockito 5 and trying to chain the call inside MockedConstruction block. I understand MockedConstruction.constructed() will return a new/different mock object for each instantiation. I am trying to find out if there is any workaround to chain the thenReturn()(or thenThrow()) in the MockedConstruction block other than write multiple test cases.
use junit5 and mockito for querydsl
重现步骤(如果有就写完整)