View Javadoc
1   package com.opencsv;
2   
3   import org.junit.jupiter.api.Test;
4   
5   import static org.junit.jupiter.api.Assertions.assertEquals;
6   
7   public class TestUtilitiesTest {
8   
9      @Test
10     public void displayStringArray() {
11        String[] stringArray = new String[3];
12  
13        stringArray[0] = "a";
14        stringArray[1] = "b";
15        stringArray[2] = "c";
16  
17        assertEquals("Header\nNumber of elements:\t3\nelement 0:\ta\nelement 1:\tb\nelement 2:\tc\n",
18              TestUtils.displayStringArray("Header", stringArray));
19     }
20  }