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 com.pgf.mqspring.component.TelegramInfoComponent; class CharacterCodeConverterComponentImplTest04 { @Mock TelegramInfoComponent telegramInfoComponent; @InjectMocks CharacterCodeConverterComponentImpl target; @BeforeEach void beforeEacn() { MockitoAnnotations.openMocks(this); } @Test void decodeEbcdic01() throws UnsupportedEncodingException { assertEquals("テストデータ", target.decodeEbcdic("テストデータ".getBytes("Cp930"))); } }