2021-11-05 12:03:27 +01:00
|
|
|
import org.junit.jupiter.api.BeforeEach;
|
|
|
|
import org.junit.jupiter.api.Test;
|
|
|
|
|
|
|
|
import javax.swing.*;
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
|
|
|
import static org.junit.jupiter.api.Assertions.*;
|
|
|
|
|
|
|
|
class TextOutputTest {
|
|
|
|
TextOutput textOutput;
|
|
|
|
ArrayList<String> text;
|
|
|
|
|
|
|
|
@BeforeEach
|
|
|
|
public void setup(){
|
|
|
|
textOutput = new TextOutput();
|
|
|
|
textOutput.formatFix(9);
|
2021-11-05 16:29:29 +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");
|
|
|
|
text.add("12 12 12");
|
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
|
|
|
|
public void print(){
|
|
|
|
textOutput.print(text);
|
|
|
|
|
|
|
|
}
|
2021-11-05 15:08:25 +01:00
|
|
|
|
|
|
|
|
2021-11-05 12:03:27 +01:00
|
|
|
}
|