reformating code

This commit is contained in:
schrom01
2021-11-12 10:37:38 +01:00
parent c76c35a62c
commit b8b3d78b78
8 changed files with 99 additions and 66 deletions
-1
View File
@@ -1,7 +1,6 @@
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.util.ArrayList;
class TextOutputTest {
+5 -5
View File
@@ -1,6 +1,7 @@
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.util.ArrayList;
@@ -32,7 +33,6 @@ public class TextTest {
}
/**
*
* Test Method del
*/
@Test
@@ -77,8 +77,8 @@ public class TextTest {
txt.add("Word word etc. !!test zweite... Zeile");
txt.add("Lorem ipsum lorem ipsum TEST");
stringListe = txt.index();
Assertions.assertEquals("Word 1, 2",stringListe.get(0));
Assertions.assertEquals("Test 1, 2, 3",stringListe.get(1));
Assertions.assertEquals("Word 1, 2", stringListe.get(0));
Assertions.assertEquals("Test 1, 2, 3", stringListe.get(1));
//End of Test
setup();
@@ -86,14 +86,14 @@ public class TextTest {
//Positiv Testcase Two
txt.add("Word word Word Test");
stringListe = txt.index();
Assertions.assertEquals("Word 1",stringListe.get(0));
Assertions.assertEquals("Word 1", stringListe.get(0));
//End of Test
setup();
//Negativ Testcase One
stringListe = txt.index();
Assertions.assertEquals(0,stringListe.size());
Assertions.assertEquals(0, stringListe.size());
}
@Test