Added a check for not empty.

This commit is contained in:
Tom Vahlman 2012-02-11 19:06:23 +01:00
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));
}