Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gmitaros committed Oct 6, 2024
1 parent 0b30fa4 commit 1a57116
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ public class CsvParserService implements DataParser {
@PostConstruct
public void init() {
long vesselData = vesselDataRepository.count();
log.info("Found {} vessel data in vessel_data db ", vesselData);
boolean loadData = vesselData <= 0 || loadCsvIfAlreadyHaveData;
if (loadData) {
log.info("CsvParserService will load data from {} file", vesselDataPath);
Expand All @@ -71,6 +72,8 @@ public void init() {
log.error("Error initializing data: ", e);
throw new RuntimeException("Failed to initialize data", e);
}
} else {
log.info("Skipping loading again vessel data from CSV file");
}
}

Expand Down

0 comments on commit 1a57116

Please sign in to comment.