2021-11-05 11:35:09 +01:00
|
|
|
import org.junit.jupiter.api.Assertions;
|
2021-11-05 09:14:26 +01:00
|
|
|
import org.junit.jupiter.api.BeforeEach;
|
|
|
|
import org.junit.jupiter.api.Test;
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
2021-11-04 14:19:58 +01:00
|
|
|
public class TextTest {
|
2021-11-05 09:14:26 +01:00
|
|
|
Text txt;
|
|
|
|
ArrayList<String> sListe;
|
|
|
|
|
|
|
|
@BeforeEach
|
|
|
|
void setup() {
|
|
|
|
txt = new Text();
|
|
|
|
}
|
|
|
|
|
|
|
|
@Test
|
|
|
|
void indexTest() {
|
2021-11-05 11:35:09 +01:00
|
|
|
txt.add("Hallo Hallo zusammen !test!");
|
|
|
|
txt.add("Hallo, wie zusammen");
|
|
|
|
txt.add("Hallo,wie wie zusammen");
|
|
|
|
sListe= txt.index();
|
|
|
|
Assertions.assertEquals("Hallo 1, 2, 3, ",sListe.get(0));
|
2021-11-05 09:14:26 +01:00
|
|
|
}
|
2021-11-04 14:19:58 +01:00
|
|
|
}
|