We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e52da3 commit 2414c85Copy full SHA for 2414c85
src/test/java/de/rwth/idsg/steve/utils/TransactionStopServiceHelperTest.java
@@ -152,4 +152,14 @@ public void testIsEnergy_nonNumericValue() {
152
153
Assertions.assertFalse(TransactionStopServiceHelper.isEnergyValue(value));
154
}
155
+
156
+ @Test
157
+ public void testIsEnergy_valueAndUnit() {
158
+ var value = TransactionDetails.MeterValues.builder()
159
+ .value("22")
160
+ .unit("Wh")
161
+ .build();
162
163
+ Assertions.assertTrue(TransactionStopServiceHelper.isEnergyValue(value));
164
+ }
165
0 commit comments