2021-11-05 12:03:27 +01:00
|
|
|
import org.junit.jupiter.api.BeforeEach;
|
|
|
|
import org.junit.jupiter.api.Test;
|
|
|
|
|
2021-11-09 20:54:54 +01:00
|
|
|
|
2021-11-05 12:03:27 +01:00
|
|
|
import java.util.ArrayList;
|
|
|
|
|
|
|
|
class TextOutputTest {
|
|
|
|
TextOutput textOutput;
|
|
|
|
ArrayList<String> text;
|
|
|
|
|
|
|
|
@BeforeEach
|
2021-11-08 20:45:44 +01:00
|
|
|
public void setup() {
|
2021-11-05 12:03:27 +01:00
|
|
|
textOutput = new TextOutput();
|
2021-11-09 20:54:54 +01:00
|
|
|
textOutput.formatFix(20);
|
2021-11-05 18:25:20 +01:00
|
|
|
//textOutput.formatRaw();
|
2021-11-05 12:03:27 +01:00
|
|
|
text = new ArrayList<>();
|
2021-11-09 20:54:54 +01:00
|
|
|
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");
|
2021-11-05 12:03:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@Test
|
2021-11-08 20:45:44 +01:00
|
|
|
public void print() {
|
|
|
|
textOutput.print(text);
|
2021-11-05 12:03:27 +01:00
|
|
|
}
|
|
|
|
}
|