This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects

Resolve "Sharing: errorneous notPresent attribute in GitProjectDTO"

Viewing commit d0672dc8
Show latest version
1 file
+ 6
1
Compare changes
  • Side-by-side
  • Inline
@@ -2,13 +2,16 @@ package at.ac.uibk.gitsearch.service;
import at.ac.uibk.gitsearch.GitsearchApp;
import at.ac.uibk.gitsearch.service.dto.BroadCastMessageDTO;
import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.jackson.databind.JsonMappingException;
import java.io.IOException;
import java.util.Arrays;
import java.util.Calendar;
import java.util.List;
import java.util.stream.Collectors;
import org.hamcrest.MatcherAssert;
import org.hamcrest.Matchers;
import org.junit.Assert;
@@ -39,6 +42,8 @@ class MessageServiceIT {
.filter(m -> m.getEnds_at().before(end2023.getTime()))
.collect(Collectors.toList());
MatcherAssert.assertThat("This may fail, if there are no old messages in gitlab", preparedTestMessages, Matchers.hasSize(2));
MatcherAssert.assertThat("This may fail, if there are changed old messages in gitlab",
preparedTestMessages.size(),
Matchers.greaterThanOrEqualTo(1));
}
}