package com.pgf.mqspring.component.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.mockito.Mock; import org.mockito.MockitoAnnotations; import org.springframework.test.util.ReflectionTestUtils; import com.pgf.mqspring.component.MqSpringMessageSourceComponent; class TelegramInfoComponentImplTest04 { @Mock MqSpringMessageSourceComponent messageSource; TelegramInfoComponentImpl target; @BeforeEach void beforeEach() throws IOException { MockitoAnnotations.openMocks(this); target = new TelegramInfoComponentImpl(messageSource, "", ""); } @Test void isTelegramInfoError01() { ReflectionTestUtils.setField(target, "isTelegramInfoError", true); assertTrue(target.isTelegramInfoError()); } }