Skip to content

Commit 4b886d5

Browse files
committed
GH-1091: Fix assertJ usage in test
1 parent 7719e31 commit 4b886d5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spring-rabbit/src/test/java/org/springframework/amqp/rabbit/connection/RoutingConnectionFactoryTests.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -319,12 +319,12 @@ protected synchronized void redeclareElementsIfNecessary() {
319319
container.afterPropertiesSet();
320320
container.start();
321321
ChannelHolder channelHolder = container.getChannelHolder();
322-
assertThat(latch.await(10, TimeUnit.SECONDS)).isTrue();
322+
assertTrue(latch.await(10, TimeUnit.SECONDS));
323323
container.releaseConsumerFor(channelHolder, true, "test");
324324
container.stop();
325-
assertThat(connectionMakerKey.get()).isEqualTo("xxx[amq.rabbitmq.reply-to]");
326-
assertThat(connectionMakerKey2.get()).isEqualTo("xxx[amq.rabbitmq.reply-to]");
327-
assertThat(SimpleResourceHolder.unbind(connectionFactory)).isEqualTo("foo");
325+
assertThat(connectionMakerKey.get(), equalTo("xxx[amq.rabbitmq.reply-to]"));
326+
assertThat(connectionMakerKey2.get(), equalTo("xxx[amq.rabbitmq.reply-to]"));
327+
assertThat(SimpleResourceHolder.unbind(connectionFactory), equalTo("foo"));
328328
}
329329

330330
}

0 commit comments

Comments
 (0)