package com.pgf.mqspring.component.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.Mock; import org.mockito.MockitoAnnotations; import org.springframework.test.util.ReflectionTestUtils; import com.pgf.mqspring.component.TelegramInfoComponent; class CharacterCodeConverterComponentImplTest12 { @Mock TelegramInfoComponent telegramInfoComponent; @InjectMocks CharacterCodeConverterComponentImpl target; @BeforeEach void beforeEacn() { MockitoAnnotations.openMocks(this); } @Test void concatByteArrays01() { byte[][] bytesArray = {}; byte[] expected = {}; assertArrayEquals(expected, ReflectionTestUtils.invokeMethod(CharacterCodeConverterComponentImpl.class, "concatByteArrays", (Object) bytesArray)); } @Test void concatByteArrays02() { byte[][] bytesArray = { new byte[] { 1, 2, 3 } }; byte[] expected = { 1, 2, 3 }; assertArrayEquals(expected, ReflectionTestUtils.invokeMethod(CharacterCodeConverterComponentImpl.class, "concatByteArrays", (Object) bytesArray)); } @Test void concatByteArrays03() { byte[][] bytesArray = { new byte[] { 1, 2, 3 }, new byte[] { 4, 5, 6 } }; byte[] expected = { 1, 2, 3, 4, 5, 6 }; assertArrayEquals(expected, ReflectionTestUtils.invokeMethod(CharacterCodeConverterComponentImpl.class, "concatByteArrays", (Object) bytesArray)); } }