@Test
public void cutStringAsArray() throws Exception {

	String src;
	String[] res;
	String[] actual;
	
	src = Locale.getString("A_SOURCE");  //$NON-NLS-1$
	res = Locale.getString("A_RESULT").split("\n");   //$NON-NLS-1$ //$NON-NLS-2$
	actual = TextUtil.cutStringAsArray(src, 80);
	assertNotNull(actual);
	assertEquals(res.length, actual.length);
	for(int i=0; i<res.length; i++) {
		assertTrue(actual[i].length()<=80, "A:Line Size "+(i+1)+": "+actual[i]+" = "+actual[i].length());    //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
		assertEquals(res[i], actual[i], "A:Line "+(i+1));  //$NON-NLS-1$
	}
	src = Locale.getString("B_SOURCE");  //$NON-NLS-1$
	res = Locale.getString("B_RESULT").split("\n");   //$NON-NLS-1$ //$NON-NLS-2$
	actual = TextUtil.cutStringAsArray(src, 80);
	assertNotNull(actual);
	assertEquals(res.length, actual.length);
	for(int i=0; i<res.length; i++) {
		assertTrue(actual[i].length()<=80, "B:Line Size "+(i+1)+": "+actual[i]+" = "+actual[i].length());    //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
		assertEquals(res[i], actual[i]," B:Line "+(i+1));  //$NON-NLS-1$
	}
	src = Locale.getString("C_SOURCE");  //$NON-NLS-1$
	res = Locale.getString("C_RESULT").split("\n");   //$NON-NLS-1$ //$NON-NLS-2$
	actual = TextUtil.cutStringAsArray(src, 80);
	assertNotNull(actual);
	assertEquals(res.length, actual.length);
	for(int i=0; i<res.length; i++) {
		assertTrue(actual[i].length()<=80, "C:Line Size "+(i+1)+": "+actual[i]+" = "+actual[i].length());    //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
		assertEquals(res[i], actual[i], "C:Line "+(i+1));  //$NON-NLS-1$
	}
	src = Locale.getString("D_SOURCE");  //$NON-NLS-1$
	res = Locale.getString("D_RESULT").split("\n");   //$NON-NLS-1$ //$NON-NLS-2$
	actual = TextUtil.cutStringAsArray(src, 80);
	assertNotNull(actual);
	assertEquals(res.length, actual.length);
	for(int i=0; i<res.length; i++) {
		assertTrue(actual[i].length()<=80, "D:Line Size "+(i+1)+": "+actual[i]+" = "+actual[i].length());    //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
		assertEquals(res[i], actual[i], "D:Line "+(i+1));  //$NON-NLS-1$
	}
}