Skip to content

Commit 4805ebf

Browse files
review
1 parent b6ffe86 commit 4805ebf

File tree

7 files changed

+8
-15
lines changed

7 files changed

+8
-15
lines changed

src/main/java/org/gridsuite/shortcircuit/server/ParametersController.java renamed to src/main/java/org/gridsuite/shortcircuit/server/ShortCircuitParametersController.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,14 @@
1919
import java.util.UUID;
2020

2121
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
22-
import static org.springframework.http.MediaType.TEXT_PLAIN_VALUE;
2322

2423
@RestController
2524
@RequestMapping(path = "/" + ShortCircuitApi.API_VERSION + "/parameters", produces = APPLICATION_JSON_VALUE, consumes = APPLICATION_JSON_VALUE)
2625
@Tag(name = "Short circuit server analysis parameters")
27-
public class ParametersController {
26+
public class ShortCircuitParametersController {
2827
private final ShortCircuitService shortCircuitService;
2928

30-
public ParametersController(ShortCircuitService shortCircuitService) {
29+
public ShortCircuitParametersController(ShortCircuitService shortCircuitService) {
3130
this.shortCircuitService = shortCircuitService;
3231
}
3332

src/main/java/org/gridsuite/shortcircuit/server/dto/ShortCircuitParametersInfos.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2023, RTE (http://www.rte-france.com)
2+
* Copyright (c) 2024, RTE (http://www.rte-france.com)
33
* This Source Code Form is subject to the terms of the Mozilla Public
44
* License, v. 2.0. If a copy of the MPL was not distributed with this
55
* file, You can obtain one at http://mozilla.org/MPL/2.0/.

src/main/java/org/gridsuite/shortcircuit/server/dto/ShortCircuitPredefinedConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2023, RTE (http://www.rte-france.com)
2+
* Copyright (c) 2024, RTE (http://www.rte-france.com)
33
* This Source Code Form is subject to the terms of the Mozilla Public
44
* License, v. 2.0. If a copy of the MPL was not distributed with this
55
* file, You can obtain one at http://mozilla.org/MPL/2.0/.

src/main/java/org/gridsuite/shortcircuit/server/entities/AnalysisParametersEntity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022, RTE (http://www.rte-france.com)
2+
* Copyright (c) 2024, RTE (http://www.rte-france.com)
33
* This Source Code Form is subject to the terms of the Mozilla Public
44
* License, v. 2.0. If a copy of the MPL was not distributed with this
55
* file, You can obtain one at http://mozilla.org/MPL/2.0/.

src/main/java/org/gridsuite/shortcircuit/server/repositories/ParametersRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022, RTE (http://www.rte-france.com)
2+
* Copyright (c) 2024, RTE (http://www.rte-france.com)
33
* This Source Code Form is subject to the terms of the Mozilla Public
44
* License, v. 2.0. If a copy of the MPL was not distributed with this
55
* file, You can obtain one at http://mozilla.org/MPL/2.0/.

src/test/java/org/gridsuite/shortcircuit/server/ParametersControllerTest.java renamed to src/test/java/org/gridsuite/shortcircuit/server/ShortCircuitParametersControllerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
4040

4141
@ExtendWith({ MockitoExtension.class })
42-
@WebMvcTest(controllers = { ParametersController.class })
43-
class ParametersControllerTest implements WithAssertions {
42+
@WebMvcTest(controllers = { ShortCircuitParametersController.class })
43+
class ShortCircuitParametersControllerTest implements WithAssertions {
4444
private static final String DEFAULT_PARAMETERS_JSON = "{\"predefinedParameters\":null,\"parameters\":null,\"cei909VoltageRanges\":[{\"range\":{\"comparator\":\"INSTANCE\",\"maximum\":199.99,\"minimum\":10.0,\"naturalOrdering\":true},\"rangeCoefficient\":1.1,\"voltage\":\"NaN\",\"minimumNominalVoltage\":10.0,\"maximumNominalVoltage\":199.99},{\"range\":{\"comparator\":\"INSTANCE\",\"maximum\":299.99,\"minimum\":200.0,\"naturalOrdering\":true},\"rangeCoefficient\":1.09,\"voltage\":\"NaN\",\"minimumNominalVoltage\":200.0,\"maximumNominalVoltage\":299.99},{\"range\":{\"comparator\":\"INSTANCE\",\"maximum\":500.0,\"minimum\":300.0,\"naturalOrdering\":true},\"rangeCoefficient\":1.05,\"voltage\":\"NaN\",\"minimumNominalVoltage\":300.0,\"maximumNominalVoltage\":500.0}]}";
4545
private static final MediaType TEXT_PLAIN_UTF8 = new MediaType("text", "plain", StandardCharsets.UTF_8);
4646

src/test/java/org/gridsuite/shortcircuit/server/service/AnalysisParametersTest.java

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)