package com.pgf.mqspring.service.impl; import static org.junit.jupiter.api.Assertions.*; import java.io.IOException; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.mockito.InjectMocks; import org.mockito.MockitoAnnotations; import org.springframework.test.context.junit.jupiter.SpringExtension; @ExtendWith(SpringExtension.class) class MqSendServiceImplTest04 { @InjectMocks MqSendServiceImpl mqSendService; @BeforeEach public void beforeEacn() throws IOException { MockitoAnnotations.openMocks(this); } @Test void getQueue01() throws InterruptedException { mqSendService.setQueue("QR.MDH01.IN"); assertEquals("queue:///QR.MDH01.IN?targetClient=1", mqSendService.getQueue()); } }