Skip to content

Commit

Permalink
Remove AssertJ usage
Browse files Browse the repository at this point in the history
  • Loading branch information
artembilan committed Dec 12, 2018
1 parent 73e5f2f commit bef51bd
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@

package org.springframework.amqp.rabbit.core;

import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;

import java.util.Map;

Expand All @@ -28,6 +29,8 @@

/**
* @author Gary Russell
* @author Artem Bilan
*
* @since 2.0
*
*/
Expand All @@ -48,12 +51,12 @@ public void channelReleasedOnTimeout() {
RabbitTemplate template = createSendAndReceiveRabbitTemplate(connectionFactory);
template.setReplyTimeout(1);
Object reply = template.convertSendAndReceive(ROUTE, "foo");
assertThat(reply).isNull();
assertNull(reply);
Object container = TestUtils.getPropertyValue(template, "directReplyToContainers", Map.class)
.get(template.isUsePublisherConnection()
? connectionFactory.getPublisherConnectionFactory()
: connectionFactory);
assertThat(TestUtils.getPropertyValue(container, "inUseConsumerChannels", Map.class)).hasSize(0);
assertEquals(0, TestUtils.getPropertyValue(container, "inUseConsumerChannels", Map.class).size());
}

}

0 comments on commit bef51bd

Please sign in to comment.