Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class BuildingProducer extends AbstractProducer<JsonObject> implements IP

public void setBuildingName(String buildingName) {
if (buildingName != null) {
this.filePath = "docs/examples/data/" + buildingName + "_building.json";
this.filePath = "./src/test/resources/" + buildingName + "_building.json";
} else {
throw new InvalidParameterException("Please provide a building name to the producer.");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class EnergyConsumptionProducer extends AbstractProducer<JsonArray> imple
public void setCity(String city) {
this.city = city;
if (this.city != null) {
this.cityConsumptionDataset = "docs/examples/data/" + this.city + "_energy_consumption.parquet";
this.cityConsumptionDataset = "./src/test/resources/" + this.city + "_energy_consumption.parquet";
} else {
throw new InvalidParameterException("Please provide a city name to the producer.");
}
Expand All @@ -58,7 +58,7 @@ public void setClientId(Integer clientId) {
this.clientId = clientId;
}

private String buildQuery() {
public String buildQuery() {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about making buildQuery() method public. But we need to do this because of the sanity tests.

final Object[] arr = new Object[4];
final String baseQuery = "SELECT Identifiant as clientId, dateinterval as timestamp, energieactivelivree_kwh as consumptionKwh FROM '%s'";
String preparedStmt = baseQuery + " WHERE Identifiant is not null";
Expand All @@ -82,7 +82,7 @@ private String buildQuery() {
return String.format(preparedStmt, arr);
}

private void validateParams() {
public void validateParams() {
Copy link
Copy Markdown
Collaborator

@MinetteMeyo MinetteMeyo Mar 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about making validateParams() method public. But we need to do this because of the sanity tests.

final int MAX_QUERY_DAYS = 30;
final LocalDateTime localStartDate = StringUtils.parseDate(this.startDatetime);
final LocalDateTime localEndDate = StringUtils.parseDate(this.endDatetime);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class GeometryProducer extends AbstractProducer<String> implements IProdu

public void setCity(String city) {
if (city != null) {
jsonProducer = new JSONProducer("docs/examples/data/" + city + "_geometries.json", null);
jsonProducer = new JSONProducer("./src/test/resources/" + city + "_geometries.json", null);
} else {
throw new InvalidParameterException("Please provide a city name to the producer.");
}
Expand Down
20 changes: 0 additions & 20 deletions Middleware/src/main/resources/Data/Data.csv

This file was deleted.

Loading
Loading