package com.pgf.mqspring.component.impl; import static org.junit.jupiter.api.Assertions.*; import java.io.UnsupportedEncodingException; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.mockito.InjectMocks; import org.mockito.Mock; import org.mockito.MockitoAnnotations; import org.springframework.test.util.ReflectionTestUtils; import com.pgf.mqspring.component.TelegramInfoComponent; class CharacterCodeConverterComponentImplTest06 { @Mock TelegramInfoComponent telegramInfoComponent; @InjectMocks CharacterCodeConverterComponentImpl target; @BeforeEach void beforeEacn() { MockitoAnnotations.openMocks(this); } @Test void decodeEbcdicSisoNone01() { byte[] bytes = {}; assertEquals("", ReflectionTestUtils.invokeMethod(target, "decodeEbcdicSisoNone", bytes)); } @Test void decodeEbcdicSisoNone02() throws UnsupportedEncodingException { byte[] bytes = { -16 }; assertEquals("0", ReflectionTestUtils.invokeMethod(target, "decodeEbcdicSisoNone", bytes)); } @Test void decodeEbcdicSisoNone03() throws UnsupportedEncodingException { byte[] bytes = { 68, -127 }; assertEquals("あ", ReflectionTestUtils.invokeMethod(target, "decodeEbcdicSisoNone", bytes)); } @Test void decodeEbcdicSisoNone04() throws UnsupportedEncodingException { byte[] bytes = { 68, -127, 68, -127 }; assertEquals("ああ", ReflectionTestUtils.invokeMethod(target, "decodeEbcdicSisoNone", bytes)); } }