Added a check for not empty.
This commit is contained in:
parent
b7a428a0a2
commit
4cd13c739c
@ -189,7 +189,7 @@ public class TestGreedyMatchingAlgorithm {
|
||||
|
||||
GreedyMatchingAlgorithm matchAlgorithm = new GreedyMatchingAlgorithm();
|
||||
Result result = matchAlgorithm.match(supervisorAvailability, unmatchedProjectIdeas, weights);
|
||||
Assert.notEmpty(result.unmatched);
|
||||
Assert.notEmpty(result.matches);
|
||||
Assert.isTrue(result.matches.get(0).getSupervisor().equals(bachelorSupervisor2));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user