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

Skip to content
Snippets Groups Projects
Commit c2c93d08 authored by Eduard Frankford's avatar Eduard Frankford
Browse files

improving tests

parent 5cf784a2
2 merge requests!188Merging Peer Reviewing et. al to Master,!164211 peer reviewing functionality
......@@ -5,7 +5,6 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
import at.ac.uibk.gitsearch.GitsearchApp;
import at.ac.uibk.gitsearch.domain.Review;
import at.ac.uibk.gitsearch.domain.ReviewRating;
import at.ac.uibk.gitsearch.domain.Statistics;
import at.ac.uibk.gitsearch.repository.jpa.ReviewRatingRepository;
import at.ac.uibk.gitsearch.repository.jpa.ReviewRepository;
......@@ -16,7 +15,6 @@ import at.ac.uibk.gitsearch.service.dto.ReviewRequest;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
......@@ -58,13 +56,6 @@ public class ReviewServiceTest {
reviewService.createReview(new ReviewRequest("resource", "codeability.at", "1", reviewers));
}
@AfterAll
public void cleanUp() {
reviewRatingRepository.deleteAll();
reviewRepository.deleteAll();
statisticsRepository.deleteAll();
}
@Test
@WithMockUser(authorities = AuthoritiesConstants.ADMIN, username = "admin")
public void createReviewTest() {
......
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