Rename class SystemOut to TextOutput
completed print Method in class TextOutput
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
class SystemOutTest {
|
||||
|
||||
public void print(){
|
||||
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user