Closed jlaur closed 4 days ago
This test failed on my local Windows system due to having a space in my path.
url.getPath() here: https://github.com/openhab/openhab-addons/blob/12d3babc17f0ab83bbc82562543efc90ea0184e5/bundles/org.openhab.binding.solarman/src/test/java/org/openhab/binding/solarman/internal/DefinitionParserTest.java#L103
url.getPath()
returns "/C:/Users/Jacob%20Laursen/Development/jlaur/openhab-addons/bundles/org.openhab.binding.solarman/target/classes/definitions" on my system.
java.io.File doesn't understand this encoding.
java.io.File
Did some minor additional refactoring as well.
This test failed on my local Windows system due to having a space in my path.
url.getPath()
here: https://github.com/openhab/openhab-addons/blob/12d3babc17f0ab83bbc82562543efc90ea0184e5/bundles/org.openhab.binding.solarman/src/test/java/org/openhab/binding/solarman/internal/DefinitionParserTest.java#L103returns "/C:/Users/Jacob%20Laursen/Development/jlaur/openhab-addons/bundles/org.openhab.binding.solarman/target/classes/definitions" on my system.
java.io.File
doesn't understand this encoding.Did some minor additional refactoring as well.