-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests for BranchObservability and InjectionObservability extensio…
…ns (#38) * Add tests for BranchObservability and InjectionObservability extensions Signed-off-by: Franck LECUYER <[email protected]>
- Loading branch information
1 parent
34bccba
commit 0535b2d
Showing
5 changed files
with
187 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
...idm-tck/src/test/java/com/powsybl/network/store/tck/extensions/BranchObservabilityIT.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/** | ||
* Copyright (c) 2024, RTE (http://www.rte-france.com) | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
*/ | ||
package com.powsybl.network.store.tck.extensions; | ||
|
||
import com.powsybl.iidm.network.tck.extensions.AbstractBranchObservabilityTest; | ||
import com.powsybl.network.store.server.NetworkStoreApplication; | ||
import org.junit.runner.RunWith; | ||
import org.springframework.boot.test.context.SpringBootTest; | ||
import org.springframework.test.context.ContextConfiguration; | ||
import org.springframework.test.context.ContextHierarchy; | ||
import org.springframework.test.context.TestPropertySource; | ||
import org.springframework.test.context.junit4.SpringRunner; | ||
|
||
@RunWith(SpringRunner.class) | ||
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT) | ||
@ContextHierarchy({ | ||
@ContextConfiguration(classes = {NetworkStoreApplication.class}) | ||
}) | ||
@TestPropertySource(properties = { "spring.config.location=classpath:application.yaml" }) | ||
class BranchObservabilityIT extends AbstractBranchObservabilityTest { | ||
} |
25 changes: 25 additions & 0 deletions
25
...-tck/src/test/java/com/powsybl/network/store/tck/extensions/InjectionObservabilityIT.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/** | ||
* Copyright (c) 2024, RTE (http://www.rte-france.com) | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
*/ | ||
package com.powsybl.network.store.tck.extensions; | ||
|
||
import com.powsybl.iidm.network.tck.extensions.AbstractInjectionObservabilityTest; | ||
import com.powsybl.network.store.server.NetworkStoreApplication; | ||
import org.junit.runner.RunWith; | ||
import org.springframework.boot.test.context.SpringBootTest; | ||
import org.springframework.test.context.ContextConfiguration; | ||
import org.springframework.test.context.ContextHierarchy; | ||
import org.springframework.test.context.TestPropertySource; | ||
import org.springframework.test.context.junit4.SpringRunner; | ||
|
||
@RunWith(SpringRunner.class) | ||
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT) | ||
@ContextHierarchy({ | ||
@ContextConfiguration(classes = {NetworkStoreApplication.class}) | ||
}) | ||
@TestPropertySource(properties = { "spring.config.location=classpath:application.yaml" }) | ||
class InjectionObservabilityIT extends AbstractInjectionObservabilityTest { | ||
} |
25 changes: 25 additions & 0 deletions
25
...ava/com/powsybl/network/store/tck/extensions/ThreeWindingsTransformerToBeEstimatedIT.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/** | ||
* Copyright (c) 2024, RTE (http://www.rte-france.com) | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
*/ | ||
package com.powsybl.network.store.tck.extensions; | ||
|
||
import com.powsybl.iidm.network.tck.extensions.AbstractThreeWindingsTransformerToBeEstimatedTest; | ||
import com.powsybl.network.store.server.NetworkStoreApplication; | ||
import org.junit.runner.RunWith; | ||
import org.springframework.boot.test.context.SpringBootTest; | ||
import org.springframework.test.context.ContextConfiguration; | ||
import org.springframework.test.context.ContextHierarchy; | ||
import org.springframework.test.context.TestPropertySource; | ||
import org.springframework.test.context.junit4.SpringRunner; | ||
|
||
@RunWith(SpringRunner.class) | ||
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT) | ||
@ContextHierarchy({ | ||
@ContextConfiguration(classes = {NetworkStoreApplication.class}) | ||
}) | ||
@TestPropertySource(properties = { "spring.config.location=classpath:application.yaml" }) | ||
class ThreeWindingsTransformerToBeEstimatedIT extends AbstractThreeWindingsTransformerToBeEstimatedTest { | ||
} |
25 changes: 25 additions & 0 deletions
25
.../java/com/powsybl/network/store/tck/extensions/TwoWindingsTransformerToBeEstimatedIT.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/** | ||
* Copyright (c) 2024, RTE (http://www.rte-france.com) | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
*/ | ||
package com.powsybl.network.store.tck.extensions; | ||
|
||
import com.powsybl.iidm.network.tck.extensions.AbstractTwoWindingsTransformerToBeEstimatedTest; | ||
import com.powsybl.network.store.server.NetworkStoreApplication; | ||
import org.junit.runner.RunWith; | ||
import org.springframework.boot.test.context.SpringBootTest; | ||
import org.springframework.test.context.ContextConfiguration; | ||
import org.springframework.test.context.ContextHierarchy; | ||
import org.springframework.test.context.TestPropertySource; | ||
import org.springframework.test.context.junit4.SpringRunner; | ||
|
||
@RunWith(SpringRunner.class) | ||
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT) | ||
@ContextHierarchy({ | ||
@ContextConfiguration(classes = {NetworkStoreApplication.class}) | ||
}) | ||
@TestPropertySource(properties = { "spring.config.location=classpath:application.yaml" }) | ||
class TwoWindingsTransformerToBeEstimatedIT extends AbstractTwoWindingsTransformerToBeEstimatedTest { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters