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 MqReceiveServiceImplTest04 { @InjectMocks MqReceiveServiceImpl mqReceiveService; @BeforeEach public void beforeEacn() throws IOException { MockitoAnnotations.openMocks(this); } @Test void setQueue01() throws InterruptedException { mqReceiveService.setQueue("test"); assertEquals("test", mqReceiveService.getQueue()); } }