Skip to content

Commit

Permalink
feat: refactor the object model and covert with unit tests
Browse files Browse the repository at this point in the history
Refs: #312
  • Loading branch information
grigoriev committed Dec 16, 2024
1 parent 2cfcc60 commit c57ab6e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ public void beforeEach(ExtensionContext context) throws Exception {
});

InternalPolarionUtils internalPolarionUtils = mock(InternalPolarionUtils.class);
when(internalPolarionUtils.executeInBaseline(any(), any())).thenAnswer(invocation -> {
lenient().when(internalPolarionUtils.executeInBaseline(any(), any())).thenAnswer(invocation -> {
RunnableWithResult<?> runnableWithResult = invocation.getArgument(1);
return runnableWithResult.run();
});
when(internalReadOnlyTransactionMock.utils()).thenReturn(internalPolarionUtils);
lenient().when(internalReadOnlyTransactionMock.utils()).thenReturn(internalPolarionUtils);

CustomExtensionMockInjector.inject(context, internalPolarionUtils);
CustomExtensionMockInjector.inject(context, internalReadOnlyTransactionMock);
Expand Down

0 comments on commit c57ab6e

Please sign in to comment.