Commit 3317825
committed
Add tests with UoM conversion
For `PersistenceThresholdFilter` add a test case that fails when
using temperatures in °C and a threshold in Kelvin. The threshold
should ignore the offset (0 °C = 273,15 K).
Add another test with length to increase coverage.
Signed-off-by: Christoph Gehrke <cgdev@duck.com>1 parent b48e163 commit 3317825
1 file changed
Lines changed: 4 additions & 0 deletions
File tree
- bundles/org.openhab.core.persistence/src/test/java/org/openhab/core/persistence/filter
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
105 | 109 | | |
106 | 110 | | |
107 | 111 | | |
| |||
0 commit comments