2021-11-05 12:03:27 +01:00
|
|
|
import org.junit.jupiter.api.BeforeEach;
|
|
|
|
import org.junit.jupiter.api.Test;
|
|
|
|
|
|
|
|
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();
|
|
|
|
textOutput.formatFix(9);
|
2021-11-05 18:25:20 +01:00
|
|
|
//textOutput.formatRaw();
|
2021-11-05 12:03:27 +01:00
|
|
|
text = new ArrayList<>();
|
2021-11-05 16:16:39 +01:00
|
|
|
text.add("123456789");
|
2021-11-05 15:08:25 +01:00
|
|
|
text.add("1234");
|
2021-11-09 10:54:26 +01:00
|
|
|
text.add("12 12 12 12 12 12");
|
|
|
|
text.add(" ");
|
2021-11-05 16:16:39 +01:00
|
|
|
text.add("1eeeeeee8597389751");
|
2021-11-05 12:03:27 +01:00
|
|
|
text.add("TextTextTextTextTextTextTextTextTextTextTextTextTextText TextTextTextTextTextTextTextTextTextTextTextText TextTextText");
|
|
|
|
}
|
|
|
|
|
|
|
|
@Test
|
2021-11-08 20:45:44 +01:00
|
|
|
public void print() {
|
|
|
|
textOutput.print(text);
|
2021-11-05 12:03:27 +01:00
|
|
|
}
|
|
|
|
}
|