Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1cd3fc5

Browse files
committedMay 26, 2023
Fix tests
1 parent 0e059f5 commit 1cd3fc5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
 

‎src/test/java/com/rabbitmq/stream/impl/FrameTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
import static com.rabbitmq.stream.impl.TestUtils.waitAtMost;
1818
import static org.assertj.core.api.Assertions.assertThat;
1919
import static org.assertj.core.api.Assertions.assertThatThrownBy;
20-
import static org.mockito.ArgumentMatchers.anyShort;
2120
import static org.mockito.Mockito.times;
2221
import static org.mockito.Mockito.verify;
2322

2423
import com.rabbitmq.stream.Codec;
24+
import com.rabbitmq.stream.Constants;
2525
import com.rabbitmq.stream.Message;
2626
import com.rabbitmq.stream.Properties;
2727
import io.netty.buffer.ByteBuf;
@@ -153,7 +153,7 @@ public TestDesc(String description, List<Integer> sizes, int expectedCalls) {
153153
.thenReturn(Mockito.mock(ChannelFuture.class));
154154

155155
client.publishInternal(
156-
anyShort(),
156+
Constants.VERSION_1,
157157
channel,
158158
b(1),
159159
test.sizes.stream()

‎src/test/java/com/rabbitmq/stream/impl/StreamProducerUnitTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,10 @@ void init() {
9595
client.publishInternal(
9696
Constants.VERSION_1,
9797
channel,
98-
invocation.getArgument(0),
9998
invocation.getArgument(1),
10099
invocation.getArgument(2),
101-
invocation.getArgument(3)));
100+
invocation.getArgument(3),
101+
invocation.getArgument(4)));
102102

103103
when(client.publishInternal(
104104
anyShort(),

0 commit comments

Comments
 (0)
Please sign in to comment.