Skip to content

Commit

Permalink
MET-5637 Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
JoanaCMS committed Nov 27, 2023
1 parent ae096dd commit d2af65e
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,6 @@ void getReport_failToRetrieveDataset_expectFail() {

@Test
void getReport_failToRetrieveRecords_expectFail() {
var datasetEntity = createDataset(5L);
when(datasetRepository.findById(1)).thenReturn(Optional.of(datasetEntity));
when(recordLogRepository.getStepStatistics("1")).thenThrow(new RuntimeException("exception"));

assertThrows(ServiceException.class, () -> service.getReport("1"));
Expand Down

0 comments on commit d2af65e

Please sign in to comment.