30 lines
721 B
Java
30 lines
721 B
Java
|
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);
|
||
|
//textOutput.formatRaw();
|
||
|
text = new ArrayList<>();
|
||
|
text.add("123 45678 ");
|
||
|
text.add("123456789");
|
||
|
text.add("TextTextTextTextTextTextTextTextTextTextTextTextTextText TextTextTextTextTextTextTextTextTextTextTextText TextTextText");
|
||
|
}
|
||
|
|
||
|
@Test
|
||
|
public void print(){
|
||
|
textOutput.print(text);
|
||
|
|
||
|
}
|
||
|
}
|