gruppe06-hufflepuff-projekt.../test/TextOutputTest.java

33 lines
748 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("1234 12345");
text.add("1234");
text.add("12 12 12");
text.add("TextTextTextTextTextTextTextTextTextTextTextTextTextText TextTextTextTextTextTextTextTextTextTextTextText TextTextText");
}
@Test
public void print(){
textOutput.print(text);
}
}