Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code cleanup to correct issues reported by Sonar (Severity: high - part 1) #2971

Merged
merged 104 commits into from
Apr 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
104 commits
Select commit Hold shift + click to select a range
625fd76
add test to avoid NullPointerException
rolnico Apr 5, 2024
5c8d233
fix return statement in MergedBus
rolnico Apr 5, 2024
6f77f25
add test to avoid potential ArrayIndexOutOfBoundsException
rolnico Apr 5, 2024
624c337
BREAKING CHANGE - Change JsonTypeInfo to avoid unsafe Jackson deseria…
rolnico Apr 5, 2024
aa523f1
fix GeneratorModificationActionTest
rolnico Apr 5, 2024
489d5ff
remove peek usage
rolnico Apr 8, 2024
c5d232c
remove duplicated tests
rolnico Apr 8, 2024
05de80b
remove exceptions not thrown
rolnico Apr 8, 2024
7f23910
if simplifications
rolnico Apr 8, 2024
bcd721f
removed unused methods
rolnico Apr 8, 2024
21da610
use Supplier from java instead if guava
rolnico Apr 8, 2024
b3ce26c
use Supplier from java instead if guava
rolnico Apr 8, 2024
9867b6d
ParsingContext declared final
rolnico Apr 8, 2024
6792363
XmlStaxContext declared final
rolnico Apr 8, 2024
266e337
replaced deprecated method for ZipFile with SeekableByteChannel
rolnico Apr 8, 2024
1a38ad6
swapped from deprecated org.apache.commons.compress.utils.IOUtils to …
rolnico Apr 8, 2024
0afcfbc
removed deprecated .newInstance method call
rolnico Apr 8, 2024
e81dc90
EmptyModuleConfigRepository declared final
rolnico Apr 8, 2024
8541b77
removed old deprecated methods + replaced guava supplier by java supp…
rolnico Apr 8, 2024
d836935
replaced deprecated Zipfile constructor by builder
rolnico Apr 8, 2024
59fd06e
replaced supplier
rolnico Apr 8, 2024
d7a6662
fix
rolnico Apr 8, 2024
06cbf2c
fix
rolnico Apr 8, 2024
0e3d1b7
fix StandardCharsets.UTF_8
rolnico Apr 8, 2024
4e1cf4a
fix
rolnico Apr 8, 2024
7a8c0eb
fix
rolnico Apr 8, 2024
af70c7f
replace supplier
rolnico Apr 8, 2024
05235c0
replace ZipFile by builder
rolnico Apr 8, 2024
afe04ce
catch Exception instead of Throwable
rolnico Apr 8, 2024
f5ef925
group logic in createComputationManager for shortTime and longTime co…
rolnico Apr 8, 2024
64af211
replace supplier
rolnico Apr 8, 2024
b66d047
remove deprecated methods in PlatformConfigNamedProvider
rolnico Apr 8, 2024
e7d471b
clean DynamicSimulationParameters
rolnico Apr 8, 2024
5398858
replace supplier
rolnico Apr 8, 2024
57d9ba1
clean Networks
rolnico Apr 8, 2024
6c1b6b7
remove old deprecated methods in StandbyAutomaton
rolnico Apr 8, 2024
85c9d41
remove old deprecated methods in StandbyAutomaton
rolnico Apr 8, 2024
d7bfc1d
remove old deprecated methods in StandbyAutomatonAdder
rolnico Apr 8, 2024
cb18318
Renamed "RL" to match the regular expression '^[A-Z][0-9]?$'.
rolnico Apr 8, 2024
920a3a1
Renamed "OWNER" to match the regular expression '^[A-Z][0-9]?$'.
rolnico Apr 8, 2024
2ee5055
Renamed "OWNER" to match the regular expression '^[A-Z][0-9]?$'.
rolnico Apr 8, 2024
44955f5
fix ReactiveCapabilityCurveAdderImpl
rolnico Apr 8, 2024
3f346ef
Rename "RL" to match the regular expression '^[A-Z][0-9]?$'.
rolnico Apr 8, 2024
c58e61a
changed supplier
rolnico Apr 8, 2024
d761eee
extract closeAndUseGarbageCollector in XMLImporter
rolnico Apr 8, 2024
aa5618b
fix Networks
rolnico Apr 8, 2024
4bb71e7
use List.of
rolnico Apr 8, 2024
a663970
remove import
rolnico Apr 8, 2024
6068329
concat duplicated test in one parametrized
rolnico Apr 8, 2024
3997949
use Map.of
rolnico Apr 8, 2024
e3ffea3
streams in try with resources
rolnico Apr 8, 2024
f64f4d4
remove import
rolnico Apr 8, 2024
0f92791
changed supplier + Stream.toList()
rolnico Apr 8, 2024
3af20d2
fix logger class
rolnico Apr 8, 2024
4e4273a
fix ValidationUtils
rolnico Apr 8, 2024
79f771e
make inner classes static in AbstractValidationFormatterWriter
rolnico Apr 8, 2024
ab5be9c
removed deprecated method UndirectedGraph.getMaxVertex
rolnico Apr 8, 2024
eeb2475
removed blank lines
rolnico Apr 8, 2024
3ff8441
fix map with preserved order
rolnico Apr 10, 2024
46103a3
fix PsseExporter issues
rolnico Apr 10, 2024
66c58ea
simplify condition
rolnico Apr 10, 2024
f14362b
swap Supplier
rolnico Apr 10, 2024
11ef1a7
swap Supplier
rolnico Apr 10, 2024
480ef80
swap Supplier
rolnico Apr 10, 2024
41b3e94
swap Supplier + string variable
rolnico Apr 10, 2024
350bbd3
swap Supplier
rolnico Apr 10, 2024
5dd35e4
replace 3 tests with one parametrized
rolnico Apr 10, 2024
5fb9736
fix ExporterTest issues
rolnico Apr 10, 2024
2a36e4e
swap supplier
rolnico Apr 10, 2024
02a54ff
replaced 3 tests with one parametrized
rolnico Apr 10, 2024
fe39abe
fix TimeSeriesMetadata issues
rolnico Apr 10, 2024
dc113b4
replace ImmutableMap with Collections.unmodifiableMap(LinkedHashMap)
rolnico Apr 10, 2024
aafadaa
replace XMLSchema.STRING with XSD.STRING
rolnico Apr 10, 2024
f6381cf
replace XMLSchema.STRING with XSD.STRING
rolnico Apr 10, 2024
8194926
regroup 17 tests in 4 parametrized tests
rolnico Apr 10, 2024
d2688d6
fix JsonActionTest issues
rolnico Apr 10, 2024
03410ff
fix JsonActionTest issues
rolnico Apr 10, 2024
52daf55
fix PreDefinedConditionTest issue
rolnico Apr 10, 2024
b8c69bb
fix issues with no assertions visible
rolnico Apr 10, 2024
e44bfb3
fix issues in AmplUtil
rolnico Apr 10, 2024
e9c775b
replace identical strings with variable
rolnico Apr 10, 2024
3165118
replace identical strings with variables
rolnico Apr 10, 2024
b40d390
replace identical strings with variables
rolnico Apr 11, 2024
d88b69e
extract internal methods in CgmesConformity1NetworkCatalog
rolnico Apr 11, 2024
eb46874
delete unused variables + add corresponding comments
rolnico Apr 11, 2024
dbfd45a
reduce method complexity
rolnico Apr 11, 2024
11ad702
reduce method complexity
rolnico Apr 11, 2024
fe8527a
constant instead of duplicated String
rolnico Apr 11, 2024
f31770f
Remove usage of generic wildcard type.
rolnico Apr 11, 2024
484a868
reduce method complexity
rolnico Apr 11, 2024
e616aa0
reduce method complexity
rolnico Apr 11, 2024
14c4ea1
reduce method complexity
rolnico Apr 11, 2024
04377b0
reduce method complexity
rolnico Apr 11, 2024
badf4ae
reduce method complexity
rolnico Apr 11, 2024
90e044b
reduce method complexity
rolnico Apr 11, 2024
d3636f0
reduce method complexity
rolnico Apr 11, 2024
bd66190
switch conditions
rolnico Apr 16, 2024
6665e3d
Merge branch 'main' into nro/cleanup
annetill Apr 23, 2024
e4099cd
Merge branch 'nro/cleanup' into nro/cleanup_severity_high_1
zamarrenolm Apr 23, 2024
a5a4af6
rename method
zamarrenolm Apr 24, 2024
b7a4489
Merge branch 'refs/heads/main' into nro/cleanup_severity_high_1
rolnico Apr 24, 2024
479ff1d
fix import
rolnico Apr 24, 2024
e490a20
common code to add steps for ratio tap changers
zamarrenolm Apr 24, 2024
0167829
Merge branch 'main' into nro/cleanup_severity_high_1
zamarrenolm Apr 24, 2024
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 @@ -88,26 +88,31 @@ void actionRoundTrip() throws IOException {
}

@Test
void actionsReadV10() throws IOException {
void actionsReadV10() {
ActionList actionList = ActionList.readJsonInputStream(getClass().getResourceAsStream("/ActionFileTestV1.0.json"));
try (ByteArrayOutputStream bos = new ByteArrayOutputStream()) {
actionList.writeJsonOutputStream(bos);
ComparisonUtils.compareTxt(getClass().getResourceAsStream("/ActionFileTest.json"), new ByteArrayInputStream(bos.toByteArray()));
} catch (Exception e) {
// Should not happen
fail();
}
}

@Test
void wrongActions() {
final InputStream inputStream = getClass().getResourceAsStream("/WrongActionFileTest.json");
assertEquals("com.fasterxml.jackson.databind.JsonMappingException: for phase tap changer tap position action relative value field can't be null\n" +
" at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 8, column: 3] (through reference chain: java.util.ArrayList[0])", assertThrows(UncheckedIOException.class, () ->
void wrongActions() throws IOException {
try (final InputStream inputStream = getClass().getResourceAsStream("/WrongActionFileTest.json")) {
assertEquals("com.fasterxml.jackson.databind.JsonMappingException: for phase tap changer tap position action relative value field can't be null\n" +
" at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 8, column: 3] (through reference chain: java.util.ArrayList[0])", assertThrows(UncheckedIOException.class, () ->
ActionList.readJsonInputStream(inputStream)).getMessage());
}

final InputStream inputStream3 = getClass().getResourceAsStream("/ActionFileTestWrongVersion.json");
assertTrue(assertThrows(UncheckedIOException.class, () -> ActionList
try (final InputStream inputStream3 = getClass().getResourceAsStream("/ActionFileTestWrongVersion.json")) {
assertTrue(assertThrows(UncheckedIOException.class, () -> ActionList
.readJsonInputStream(inputStream3))
.getMessage()
.contains("actions. Tag: value is not valid for version 1.1. Version should be <= 1.0"));
}
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
import com.powsybl.iidm.network.Network;
import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.fail;

/**
* @author Geoffroy Jamgotchian {@literal <geoffroy.jamgotchian at rte-france.com>}
*/
Expand All @@ -32,6 +34,11 @@ protected String getDslFile() {

@Test
void test() {
engine.start(actionDb);
try {
engine.start(actionDb);
} catch (Exception e) {
// Should not happen
fail();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
import com.powsybl.iidm.network.Network;
import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.fail;

class PreDefinedMethodsTest extends AbstractLoadFlowRulesEngineTest {
@Override
protected Network createNetwork() {
Expand All @@ -30,6 +32,11 @@ protected String getDslFile() {

@Test
void test() throws Exception {
engine.start(actionDb);
try {
engine.start(actionDb);
} catch (Exception e) {
// Should not happen
fail();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
import com.powsybl.iidm.network.Network;
import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.fail;

/**
* @author Geoffroy Jamgotchian {@literal <geoffroy.jamgotchian at rte-france.com>}
*/
Expand All @@ -29,6 +31,11 @@ protected String getDslFile() {

@Test
void test() {
engine.start(actionDb);
try {
engine.start(actionDb);
} catch (Exception e) {
// Should not happen
fail();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public static int getConnectableBusNum(StringToIntMapper<AmplSubset> mapper, Ter
}

private static void createLimitsIds(StringToIntMapper<AmplSubset> mapper, CurrentLimits limits, String branchId, String sideId) {
for (CurrentLimits.TemporaryLimit tl : limits.getTemporaryLimits()) {
for (LoadingLimits.TemporaryLimit tl : limits.getTemporaryLimits()) {
String limitId = branchId + "_" + sideId + "_" + tl.getAcceptableDuration();
mapper.newInt(AmplSubset.TEMPORARY_CURRENT_LIMIT, limitId);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
*/
public final class CgmesConformity1Catalog {

private static final String UUID_STR_1 = "urn:uuid:2399cbd0-9a39-11e0-aa80-0800200c9a66";
private static final String UUID_STR_2 = "urn:uuid:2399cbd1-9a39-11e0-aa80-0800200c9a66";
private static final String UUID_STR_3 = "urn:uuid:239ecbd2-9a39-11e0-aa80-0800200c9a66";

private CgmesConformity1Catalog() {
}

Expand Down Expand Up @@ -442,9 +446,9 @@ public static InMemoryCgmesModel expectedMicroGridBaseCaseBE() {
.synchronousMachinesGenerators("3a3b27be-b18b-4385-b557-6735d733baf0",
"550ebe0d-f2b2-48c1-991f-cebea43a21aa")
.modelProfiles("urn:uuid:0eb1540d-5ca3-40ab-9bf7-c91ec4c5d7c3",
"urn:uuid:2399cbd0-9a39-11e0-aa80-0800200c9a66",
"urn:uuid:2399cbd0-9a39-11e0-aa80-0800200c9a66",
"urn:uuid:2399cbd1-9a39-11e0-aa80-0800200c9a66",
UUID_STR_1,
UUID_STR_1,
UUID_STR_2,
"urn:uuid:239caf0a-38bf-468b-a4d8-15f619886c58",
"urn:uuid:52b712d1-f3b0-4a59-9191-79f2fb1e4c4e",
"urn:uuid:9e383122-10cf-4da3-9785-f404b3541588",
Expand Down Expand Up @@ -941,12 +945,12 @@ private static InMemoryCgmesModel expectedMiniNodeBreaker() {
.asynchronousMachines("062ece1f-ade5-4d20-9c3a-fd8f12d12ec1",
"ba62884d-8800-41a8-9c26-698297d7ebaa",
"f184d87b-5565-45ee-89b4-29e8a42d3ad1")
.modelProfiles("urn:uuid:2399cbd0-9a39-11e0-aa80-0800200c9a66",
"urn:uuid:2399cbd0-9a39-11e0-aa80-0800200c9a66",
"urn:uuid:2399cbd1-9a39-11e0-aa80-0800200c9a66",
"urn:uuid:239ecbd2-9a39-11e0-aa80-0800200c9a66",
"urn:uuid:239ecbd2-9a39-11e0-aa80-0800200c9a66",
"urn:uuid:239ecbd2-9a39-11e0-aa80-0800200c9a66",
.modelProfiles(UUID_STR_1,
UUID_STR_1,
UUID_STR_2,
UUID_STR_3,
UUID_STR_3,
UUID_STR_3,
"urn:uuid:239scbd7-9a39-11e0-aa80-0800200c9a66",
"urn:uuid:239tcbd4-9a39-11e0-aa80-0800200c9a66",
"urn:uuid:239vcbd3-9a39-11e0-aa80-0800200c9a66");
Expand Down Expand Up @@ -1125,9 +1129,9 @@ public static CgmesModel expectedMicroGridType4BE() {
m.staticVarCompensators("3c69652c-ff14-4550-9a87-b6fdaccbb5f4");
m.modelProfiles().clear();
m.modelProfiles("urn:uuid:1a64ce59-b28c-4b43-bf21-50b51865d777",
"urn:uuid:2399cbd0-9a39-11e0-aa80-0800200c9a66",
"urn:uuid:2399cbd0-9a39-11e0-aa80-0800200c9a66",
"urn:uuid:2399cbd1-9a39-11e0-aa80-0800200c9a66",
UUID_STR_1,
UUID_STR_1,
UUID_STR_2,
"urn:uuid:75271ec4-af11-4a87-8137-d6d2b43b594d",
"urn:uuid:806f9f1b-ff69-4fb5-80f9-a8f393d31ebb",
"urn:uuid:80f1fec9-412f-4ca5-8706-d0d3382e9a71",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
*/
public final class CgmesConformity1ModifiedCatalog {

private static final String MICROGRID_REF_SWITCH = "/MicroGrid/BaseCase/BC_BE_v2_switch_at_boundary/";
private static final String MICROGRID_REF_TRANSFORMER = "/MicroGrid/BaseCase/BC_BE_v2_transformer_at_boundary/";
private static final String MICROGRID_REF_EQBRANCH = "/MicroGrid/BaseCase/BC_BE_v2_eqbranch_at_boundary/";
private static final String MICROGRID_CONFIGURATION = "/MicroGrid/BaseCase/CGMES_v2.4.15_MicroGridTestConfiguration_BC_NL_v2/";

private CgmesConformity1ModifiedCatalog() {
}

Expand Down Expand Up @@ -397,7 +402,7 @@ public static GridModelReference microGridBaseCaseBESharedRegulatingControl() {

public static GridModelReferenceResources microGridBaseCaseBESwitchAtBoundary() {
String baseModified = ENTSOE_CONFORMITY_1_MODIFIED
+ "/MicroGrid/BaseCase/BC_BE_v2_switch_at_boundary/";
+ MICROGRID_REF_SWITCH;
return new GridModelReferenceResources("MicroGrid-BaseCase-BE-SwitchAtBoundary",
null,
new ResourceSet(baseModified,
Expand All @@ -411,7 +416,7 @@ public static GridModelReferenceResources microGridBaseCaseBESwitchAtBoundary()

public static GridModelReferenceResources microGridBaseCaseBETransformerAtBoundary() {
String baseModified = ENTSOE_CONFORMITY_1_MODIFIED
+ "/MicroGrid/BaseCase/BC_BE_v2_transformer_at_boundary/";
+ MICROGRID_REF_TRANSFORMER;
return new GridModelReferenceResources("MicroGrid-BaseCase-BE-TransformerAtBoundary",
null,
new ResourceSet(baseModified,
Expand All @@ -425,7 +430,7 @@ public static GridModelReferenceResources microGridBaseCaseBETransformerAtBounda

public static GridModelReferenceResources microGridBaseCaseBEEquivalentBranchAtBoundary() {
String baseModified = ENTSOE_CONFORMITY_1_MODIFIED
+ "/MicroGrid/BaseCase/BC_BE_v2_eqbranch_at_boundary/";
+ MICROGRID_REF_EQBRANCH;
return new GridModelReferenceResources("MicroGrid-BaseCase-BE-EquivalentBranchAtBoundary",
null,
new ResourceSet(baseModified,
Expand Down Expand Up @@ -601,7 +606,7 @@ public static GridModelReferenceResources microGridBaseCaseAssembledThreeLinesAt

public static GridModelReferenceResources microGridBaseCaseAssembledSwitchAtBoundary() {
String baseModified = ENTSOE_CONFORMITY_1_MODIFIED
+ "/MicroGrid/BaseCase/BC_BE_v2_switch_at_boundary/";
+ MICROGRID_REF_SWITCH;
return new GridModelReferenceResources("MicroGrid-BaseCase-Assembled-SwitchAtBoundary",
null,
new ResourceSet(baseModified,
Expand All @@ -618,7 +623,7 @@ public static GridModelReferenceResources microGridBaseCaseAssembledSwitchAtBoun

public static GridModelReferenceResources microGridBESwitchAtBoundary() {
String baseModified = ENTSOE_CONFORMITY_1_MODIFIED
+ "/MicroGrid/BaseCase/BC_BE_v2_switch_at_boundary/";
+ MICROGRID_REF_SWITCH;
return new GridModelReferenceResources("MicroGrid-BaseCase-BE-SwitchAtBoundary",
null,
new ResourceSet(baseModified,
Expand All @@ -632,7 +637,7 @@ public static GridModelReferenceResources microGridBESwitchAtBoundary() {

public static GridModelReferenceResources microGridBETransformerAtBoundary() {
String baseModified = ENTSOE_CONFORMITY_1_MODIFIED
+ "/MicroGrid/BaseCase/BC_BE_v2_transformer_at_boundary/";
+ MICROGRID_REF_TRANSFORMER;
return new GridModelReferenceResources("MicroGrid-BaseCase-BE-TransformerAtBoundary",
null,
new ResourceSet(baseModified,
Expand All @@ -646,7 +651,7 @@ public static GridModelReferenceResources microGridBETransformerAtBoundary() {

public static GridModelReferenceResources microGridBEEquivalentBranchAtBoundary() {
String baseModified = ENTSOE_CONFORMITY_1_MODIFIED
+ "/MicroGrid/BaseCase/BC_BE_v2_eqbranch_at_boundary/";
+ MICROGRID_REF_EQBRANCH;
return new GridModelReferenceResources("MicroGrid-BaseCase-BE-EquivalentBranchAtBoundary",
null,
new ResourceSet(baseModified,
Expand All @@ -660,7 +665,7 @@ public static GridModelReferenceResources microGridBEEquivalentBranchAtBoundary(

public static GridModelReferenceResources microGridBaseCaseAssembledTransformerAtBoundary() {
String baseModified = ENTSOE_CONFORMITY_1_MODIFIED
+ "/MicroGrid/BaseCase/BC_BE_v2_transformer_at_boundary/";
+ MICROGRID_REF_TRANSFORMER;
return new GridModelReferenceResources("MicroGrid-BaseCase-Assembled-TransformerAtBoundary",
null,
new ResourceSet(baseModified,
Expand All @@ -677,7 +682,7 @@ public static GridModelReferenceResources microGridBaseCaseAssembledTransformerA

public static GridModelReferenceResources microGridBaseCaseAssembledEquivalentBranchAtBoundary() {
String baseModified = ENTSOE_CONFORMITY_1_MODIFIED
+ "/MicroGrid/BaseCase/BC_BE_v2_eqbranch_at_boundary/";
+ MICROGRID_REF_EQBRANCH;
return new GridModelReferenceResources("MicroGrid-BaseCase-Assembled-EquivalentBranchAtBoundary",
null,
new ResourceSet(baseModified,
Expand Down Expand Up @@ -1475,7 +1480,7 @@ public static GridModelReference microGridBaseCaseNLShuntCompensatorGP() {
String base = ENTSOE_CONFORMITY_1_MODIFIED
+ "/MicroGrid/BaseCase/BC_NL_v2_shunt_compensator_g_p/";
String baseOriginal = ENTSOE_CONFORMITY_1
+ "/MicroGrid/BaseCase/CGMES_v2.4.15_MicroGridTestConfiguration_BC_NL_v2/";
+ MICROGRID_CONFIGURATION;
return new GridModelReferenceResources(
"MicroGrid-BaseCase-NL-sc-g-p",
null,
Expand All @@ -1490,7 +1495,7 @@ public static GridModelReference microGridBaseCaseNLSwitchWithoutName() {
String base = ENTSOE_CONFORMITY_1_MODIFIED
+ "/MicroGrid/BaseCase/BC_NL_v2_switch_without_name/";
String baseOriginal = ENTSOE_CONFORMITY_1
+ "/MicroGrid/BaseCase/CGMES_v2.4.15_MicroGridTestConfiguration_BC_NL_v2/";
+ MICROGRID_CONFIGURATION;
return new GridModelReferenceResources(
"MicroGrid-BaseCase-NL-switch-no-name",
null,
Expand All @@ -1504,7 +1509,7 @@ public static GridModelReference microGridBaseCaseNLSwitchTypePreserved() {
String base = ENTSOE_CONFORMITY_1_MODIFIED
+ "/MicroGrid/BaseCase/BC_NL_v2_switch_type_preserved/";
String baseOriginal = ENTSOE_CONFORMITY_1
+ "/MicroGrid/BaseCase/CGMES_v2.4.15_MicroGridTestConfiguration_BC_NL_v2/";
+ MICROGRID_CONFIGURATION;
return new GridModelReferenceResources(
"MicroGrid-BaseCase-NL-switch-type-preserved",
null,
Expand Down
Loading