package com.pgf.mqspring.service.impl; import static org.junit.jupiter.api.Assertions.*; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.mockito.InjectMocks; import org.mockito.MockitoAnnotations; class MqSendServiceImplTest03 { @InjectMocks MqSendServiceImpl mqSendService; @BeforeEach public void beforeEacn() { MockitoAnnotations.openMocks(this); } @Test void setQueue01() { mqSendService.setQueue("QR.MDH01.IN"); assertEquals("queue:///QR.MDH01.IN?targetClient=1", mqSendService.getQueue()); } @Test void setQueue02() { mqSendService.setQueue(null); assertEquals("queue:///null?targetClient=1", mqSendService.getQueue()); assertTrue(true); } }