Skip to content

Commit

Permalink
Revert
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo Marcellin committed Sep 18, 2023
1 parent 6a691e5 commit df40b61
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@
*/
package org.gridsuite.sensitivityanalysis.server.service;

import org.gridsuite.sensitivityanalysis.server.repositories.GlobalStatusRepository;
import org.gridsuite.sensitivityanalysis.server.repositories.AnalysisResultRepository;
import org.springframework.stereotype.Service;

/**
* @author Hugo Marcellin <hugo.marcelin at rte-france.com>
*/
@Service
public class SupervisionService {
private final GlobalStatusRepository globalStatusRepository;
private final AnalysisResultRepository analysisResultRepository;

public SupervisionService(GlobalStatusRepository globalStatusRepository) {
this.globalStatusRepository = globalStatusRepository;
public SupervisionService(AnalysisResultRepository analysisResultRepository) {
this.analysisResultRepository = analysisResultRepository;
}

public Integer getResultsCount() {
return (int) globalStatusRepository.count();
return (int) analysisResultRepository.count();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public void testResultCount() throws Exception {
.andReturn();

String resultCount = mvcResult.getResponse().getContentAsString();
assertEquals(resultCount, "0");
assertEquals("0", resultCount);

}
}

0 comments on commit df40b61

Please sign in to comment.