Praktikum 3: test sollte wieder grün sein
This commit is contained in:
parent
90a5f6f6d1
commit
533e2a5962
|
@ -84,6 +84,7 @@ public class Vorlesungsverzeichnis {
|
||||||
list.add(v.getDozent());
|
list.add(v.getDozent());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Collections.sort(list);
|
||||||
map.put(title, list);
|
map.put(title, list);
|
||||||
list = new ArrayList<>();
|
list = new ArrayList<>();
|
||||||
}
|
}
|
||||||
|
|
|
@ -81,9 +81,10 @@ public class VorlesungsverzeichnisTest {
|
||||||
Map<String, List<String>> map = vorlesungsverzeichnis.multipleTitles();
|
Map<String, List<String>> map = vorlesungsverzeichnis.multipleTitles();
|
||||||
|
|
||||||
List<String> math = new ArrayList<>();
|
List<String> math = new ArrayList<>();
|
||||||
math.add("Rabe");
|
|
||||||
math.add("von Coelln");
|
math.add("von Coelln");
|
||||||
|
math.add("Rabe");
|
||||||
|
|
||||||
|
Collections.sort(math);
|
||||||
assertEquals(map.get("Mathematik 2"), math);
|
assertEquals(map.get("Mathematik 2"), math);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue