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

Skip to content
Snippets Groups Projects
Commit 29d72253 authored by Michael Breu's avatar Michael Breu :speech_balloon:
Browse files

More test coverage

parent 0d64f21d
1 merge request!38Resolve "Easy Access to ReadMe.md (and potentially other files)"
This commit is part of merge request !38. Comments created here will be created in the context of that merge request.
......@@ -77,6 +77,7 @@ public class SearchServiceIT {
SearchResultsDTO searchResultPage = searchService.searchResultPage(searchQuery, 0, SearchInputDTO.PAGE_SIZE);
Assert.assertTrue("At least one hit?", searchResultPage.getSearchResult().size() >= 1);
Assert.assertEquals("We start at 0", 0, searchResultPage.getPageStartIndex());
LOGGER.info("found {} hits for all", searchResultPage.getHitCount());
}
......
......@@ -7,6 +7,8 @@ import org.junit.jupiter.api.Test;
import at.ac.uibk.gitsearch.service.MailService;
import at.ac.uibk.gitsearch.service.dto.SearchResultDTO.GitProject;
import at.ac.uibk.gitsearch.service.dto.SearchResultsDTO.ExerciseType;
import at.ac.uibk.gitsearch.service.dto.SearchResultsDTO.GitProjectVisibility;
import at.ac.uibk.gitsearch.service.dto.UserProvidedMetadataDTO.Person;
import at.ac.uibk.gitsearch.testingUtilities.PropertiesTester;
import nl.jqno.equalsverifier.EqualsVerifier;
......@@ -37,8 +39,22 @@ public class VariousDTOTest {
propertiesTester.testProperties(SearchResultDTO.class);
propertiesTester.testProperties(Person.class);
propertiesTester.testProperties(GitProject.class);
// just for test coverage
SearchResultsDTO srDTO = new SearchResultsDTO(null, 0, 0);
}
@Test
public void testSearchResultsEnums() throws IllegalAccessException, InvocationTargetException {
for(ExerciseType et: ExerciseType.values()) {
et.getExternalName();
}
for(GitProjectVisibility vis: GitProjectVisibility.values()) {
vis.getExternalName();
}
}
@org.junit.jupiter.api.Test
public void testSearchInputDTO() throws IllegalAccessException, InvocationTargetException {
propertiesTester.testProperties(SearchInputDTO.class);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment