Skip to content

Commit c58f090

Browse files
committed
fix!: correct argument order in ConnectionFactoryCustomizer mock setup
1 parent 2771535 commit c58f090

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

starters/async-rabbit-starter/src/test/java/org/reactivecommons/async/rabbit/RabbitMQBrokerProviderFactoryTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ void shouldReturnCreateDiscardProvider() {
7171
@Test
7272
void shouldReturnBrokerProvider() {
7373
when(cfCustomizer.customize(any(ConnectionFactory.class), any(AsyncProps.class)))
74-
.thenAnswer(invocation -> invocation.<ConnectionFactory>getArgument(1));
74+
.thenAnswer(invocation -> invocation.<ConnectionFactory>getArgument(0));
7575

7676
// Arrange
7777
AsyncProps props = new AsyncProps();

starters/async-rabbit-starter/src/test/java/org/reactivecommons/async/rabbit/RabbitMQDiscardProviderImplTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class RabbitMQDiscardProviderImplTest {
3131
@BeforeEach
3232
void setUp() {
3333
when(cfCustomizer.customize(any(ConnectionFactory.class), any(AsyncProps.class)))
34-
.thenAnswer(invocation -> invocation.<ConnectionFactory>getArgument(1));
34+
.thenAnswer(invocation -> invocation.<ConnectionFactory>getArgument(0));
3535
}
3636

3737
@Test

0 commit comments

Comments
 (0)