You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/test/groovy/edu/ie3/datamodel/models/CommonVoltageLevelTest.groovy
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -55,6 +55,6 @@ class CommonVoltageLevelTest extends Specification {
55
55
56
56
then:
57
57
VoltageLevelException ex = thrown()
58
-
ex.message =="The provided id \"HS\" and rated voltage \"500 V\" could possibly meet the voltage level \"Niederspannung\" (Interval [0 kV, 10 kV)), but are inconsistent."
58
+
ex.message =="The provided id \"HS\" and rated voltage \"500 V\" could possibly meet the voltage level \"Niederspannung\" (Interval [0.0 kV, 10 kV)), but are inconsistent."
Copy file name to clipboardExpand all lines: src/test/groovy/edu/ie3/datamodel/utils/validation/ConnectorValidationUtilsTest.groovy
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -81,7 +81,7 @@ class ConnectorValidationUtilsTest extends Specification {
81
81
GridTestData.lineFtoG.copy().nodeA(GridTestData.nodeG).build() ||newInvalidEntityException("LineInput connects the same node, but shouldn't", invalidLine)
82
82
GridTestData.lineFtoG.copy().nodeA(GridTestData.nodeF.copy().subnet(5).build()).build() ||newInvalidEntityException("LineInput connects different subnets, but shouldn't", invalidLine)
83
83
GridTestData.lineFtoG.copy().nodeA(GridTestData.nodeF.copy().voltLvl(GermanVoltageLevelUtils.MV_10KV).build()).build() ||newInvalidEntityException("LineInput connects different voltage levels, but shouldn't", invalidLine)
84
-
GridTestData.lineFtoG.copy().length(Quantities.getQuantity(0d, METRE)).build() ||newInvalidEntityException("The following quantities have to be positive: 0 km", invalidLine)
84
+
GridTestData.lineFtoG.copy().length(Quantities.getQuantity(0d, METRE)).build() ||newInvalidEntityException("The following quantities have to be positive: 0.0 km", invalidLine)
85
85
GridTestData.lineFtoG.copy().nodeA(GridTestData.nodeF.copy().geoPosition(testCoordinate).build()).build() ||newInvalidEntityException("Coordinates of start and end point do not match coordinates of connected nodes", invalidLine)
86
86
GridTestData.lineFtoG.copy().nodeB(GridTestData.nodeG.copy().geoPosition(testCoordinate).build()).build() ||newInvalidEntityException("Coordinates of start and end point do not match coordinates of connected nodes", invalidLine)
87
87
invalidLineLengthNotMatchingCoordinateDistances ||newInvalidEntityException("Line length does not equal calculated distances between points building the line", invalidLine)
@@ -171,7 +171,7 @@ class ValidationUtilsTest extends Specification {
171
171
172
172
then:
173
173
InvalidEntityException ex = thrown()
174
-
ex.message =="Entity is invalid because of: The following quantities have to be zero or positive: -1 µS/km [LineTypeInput{uuid=3bed3eb3-9790-4874-89b5-a5434d408088, id=lineType_AtoB, b=-1 µS/km, g=0 µS/km, r=0.437 Ω/km, x=0.356 Ω/km, iMax=300 A, vRated=20 kV}]"
174
+
ex.message =="Entity is invalid because of: The following quantities have to be zero or positive: -1 µS/km [LineTypeInput{uuid=3bed3eb3-9790-4874-89b5-a5434d408088, id=lineType_AtoB, b=-1 µS/km, g=0.0 µS/km, r=0.437 Ω/km, x=0.356 Ω/km, iMax=300 A, vRated=20 kV}]"
175
175
}
176
176
177
177
def"The check for zero or negative entities should work as expected"() {
@@ -208,7 +208,7 @@ class ValidationUtilsTest extends Specification {
208
208
209
209
then:
210
210
InvalidEntityException ex = thrown()
211
-
ex.message =="Entity is invalid because of: The following quantities have to be positive: 0 µS/km [LineTypeInput{uuid=3bed3eb3-9790-4874-89b5-a5434d408088, id=lineType_AtoB, b=0 µS/km, g=0 µS/km, r=0.437 Ω/km, x=0.356 Ω/km, iMax=300 A, vRated=20 kV}]"
211
+
ex.message =="Entity is invalid because of: The following quantities have to be positive: 0.0 µS/km [LineTypeInput{uuid=3bed3eb3-9790-4874-89b5-a5434d408088, id=lineType_AtoB, b=0.0 µS/km, g=0.0 µS/km, r=0.437 Ω/km, x=0.356 Ω/km, iMax=300 A, vRated=20 kV}]"
212
212
}
213
213
214
214
def"Checking an unsupported asset leads to an exception"() {
0 commit comments