34 lines
1.1 KiB
Java
34 lines
1.1 KiB
Java
import org.junit.jupiter.api.BeforeEach;
|
|
import org.junit.jupiter.api.Test;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
class TextOutputTest {
|
|
TextOutput textOutput;
|
|
ArrayList<String> text;
|
|
|
|
@BeforeEach
|
|
public void setup() {
|
|
textOutput = new TextOutput();
|
|
textOutput.formatFix(20);
|
|
//textOutput.formatRaw();
|
|
text = new ArrayList<>();
|
|
text.add("Virtute praecedunt, quod fere cotidianis proeliis cum Germanis contendunt, septentr ionesimmensoslongusw ordos.");
|
|
text.add("Virtutedasjdhashdkjhakjdhakdshjkashd praecedunt, quod fere cotidianis proeliis cum");
|
|
//text.add("ordos.");
|
|
text.add("1234");
|
|
text.add("12417575147517845 445264565");
|
|
text.add(" ");
|
|
//text.add("1eeeeeee8597389751");
|
|
//text.add("TextTextTextTextTextTextTextTextTextTextTextTextTextText TextTextTextTextTextTextTextTextTextTextTextText TextTextText");
|
|
}
|
|
|
|
@Test
|
|
public void print() {
|
|
textOutput.print(text);
|
|
System.out.println("fertig");
|
|
textOutput.formatRaw();
|
|
textOutput.print(text);
|
|
System.out.println("fertig");
|
|
}
|
|
} |