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

Skip to content
Snippets Groups Projects

Resolve "Relevance Ranking in Metadata"

Merged Philipp Gritsch requested to merge 439-relevance-ranking-in-metadata into development
@@ -6,9 +6,11 @@ import static org.hamcrest.Matchers.not;
import at.ac.uibk.gitsearch.GitsearchApp;
import at.ac.uibk.gitsearch.service.dto.EditorialPageDTO;
import java.util.concurrent.TimeUnit;
import org.gitlab4j.api.GitLabApiException;
import org.hamcrest.MatcherAssert;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.Timeout;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.transaction.annotation.Transactional;
@@ -18,13 +20,14 @@ import org.springframework.transaction.annotation.Transactional;
*/
@SpringBootTest(classes = GitsearchApp.class)
@Transactional
public class EditorialPagesServiceIT {
class EditorialPagesServiceIT {
@Autowired
private EditorialPagesService editorialPagesService;
@Test
public void testSimplePage() throws GitLabApiException {
@Timeout(value = 60, unit = TimeUnit.SECONDS) // gitlab may respond slowly
void testSimplePage() throws GitLabApiException {
EditorialPageDTO page = editorialPagesService.getContent("/de/start");
MatcherAssert.assertThat(page.getContent(), not(is(emptyOrNullString())));
}