Implement the createNameList
method
This commit is contained in:
parent
73374ed7bb
commit
1a1351c38f
|
@ -60,8 +60,9 @@ public class RankingListServer implements CommandExecutor {
|
|||
}
|
||||
|
||||
public String createNameList(List<Competitor> competitorList) {
|
||||
// TODO Implement
|
||||
return "";
|
||||
return String.join(
|
||||
System.lineSeparator(),
|
||||
competitorList.stream().sorted(new AlphaComparatorCompetitor()).map((competitor) -> competitor.toString()).toList());
|
||||
}
|
||||
|
||||
public String execute(String rankingList) {
|
||||
|
|
|
@ -3,7 +3,6 @@ package ch.nuth.zhaw.exbox;
|
|||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
|
|
Loading…
Reference in a new issue