reformating code
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
class TextOutputTest {
|
||||
|
||||
+5
-5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user