From 3668f40fe4750f88b41489da918225358e045c8d Mon Sep 17 00:00:00 2001 From: github-actions <> Date: Thu, 17 Mar 2022 13:21:08 +0000 Subject: [PATCH] Format : Google Java Format --- .../DeliveryMessagePublisherImplTest.java | 40 ++++++++----------- 1 file changed, 16 insertions(+), 24 deletions(-) diff --git a/delivery-info-service/src/integrationTest/java/com/inbobwetrust/publisher/DeliveryMessagePublisherImplTest.java b/delivery-info-service/src/integrationTest/java/com/inbobwetrust/publisher/DeliveryMessagePublisherImplTest.java index c4db590c..f6c9df02 100644 --- a/delivery-info-service/src/integrationTest/java/com/inbobwetrust/publisher/DeliveryMessagePublisherImplTest.java +++ b/delivery-info-service/src/integrationTest/java/com/inbobwetrust/publisher/DeliveryMessagePublisherImplTest.java @@ -2,6 +2,8 @@ import static org.junit.Assert.assertTrue; import static org.mockito.ArgumentMatchers.*; +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.ArgumentMatchers.eq; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; @@ -21,14 +23,6 @@ import org.testcontainers.containers.RabbitMQContainer; import org.testcontainers.junit.jupiter.Container; -import java.time.LocalDateTime; - -import static org.junit.Assert.assertTrue; -import static org.mockito.ArgumentMatchers.any; -import static org.mockito.ArgumentMatchers.eq; -import static org.mockito.Mockito.times; -import static org.mockito.Mockito.verify; - @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) @AutoConfigureWebTestClient // @Testcontainers @@ -41,17 +35,14 @@ public class DeliveryMessagePublisherImplTest { @Value("messageQueue.exchange.agency") private String agencyExchange; - @Autowired - WebTestClient webTestClient; + @Autowired WebTestClient webTestClient; - @Autowired - DeliveryRepository deliveryRepository; + @Autowired DeliveryRepository deliveryRepository; @Container static RabbitMQContainer container = new RabbitMQContainer("rabbitmq:3.7.25-management-alpine"); - @SpyBean - AmqpTemplate amqpTemplate; + @SpyBean AmqpTemplate amqpTemplate; @DynamicPropertySource static void configure(DynamicPropertyRegistry registry) { @@ -64,16 +55,17 @@ void sendAddDeliveryEventTest() throws InterruptedException { // given var delivery = makeValidDelivery(); // when - var resBody = this.webTestClient - .post() - .uri("/api/delivery") - .bodyValue(delivery) - .exchange() - .expectStatus() - .isOk() - .expectBody(Delivery.class) - .returnResult() - .getResponseBody(); + var resBody = + this.webTestClient + .post() + .uri("/api/delivery") + .bodyValue(delivery) + .exchange() + .expectStatus() + .isOk() + .expectBody(Delivery.class) + .returnResult() + .getResponseBody(); Thread.sleep(1000L); // then