public void test_TextLinewrap() {
// default is 132 characters before a wrap and 0 wrap indent
MeasuredTextFlow flow = this.getInjector().getInstance(TextFlow.class);
Fixed stars = new CharSequences.Fixed('*', 22);
for(int i = 0; i < 24; i++) {
flow.appendText(stars);
flow.appendSpaces(0);
}
assertEquals(4, flow.getHeight());
assertEquals(132, flow.getWidth());