CharArrayBuffer buffer = new CharArrayBuffer(16);
buffer.append(" name: value ");
assertEquals(5, buffer.indexOf(':'));
assertEquals(" name", buffer.substring(0, 5));
assertEquals(" value ", buffer.substring(6, buffer.length()));
assertEquals("name", buffer.substringTrimmed(0, 5));
assertEquals("value", buffer.substringTrimmed(6, buffer.length()));
assertEquals("", buffer.substringTrimmed(13, buffer.length()));
}
public void testSubstringIndexOfOutBound() {