Rename class SystemOut to TextOutput

completed print Method in class TextOutput
This commit is contained in:
Leonardo Brandenberger
2021-11-05 12:03:27 +01:00
parent ae881bd8ac
commit b7694dc0f6
5 changed files with 221 additions and 36 deletions
-8
View File
@@ -1,8 +0,0 @@
import static org.junit.jupiter.api.Assertions.*;
class SystemOutTest {
public void print(){
}
}
+30
View File
@@ -0,0 +1,30 @@
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);
}
}