### Question:
InfoValues { public String getValues() { String info = ""; for ( int i = 0; i < vsL.size(); i ++ ) { info += vsL.get( i ) + "|"; } return info; } InfoValues( String... titleA ); String getValues(); public String[] titleA; public List< String > vsL; }### Answer:
@Test public void testgetValues() throws Exception { InfoValues iv; iv = new InfoValues( "Test" ); iv.vsL.add( " AB " ); iv.vsL.add( " CD " ); assertEquals( " AB | CD |", iv.getValues() ); }