Fixed: Cannot run ComponentContainerTest on windows

(OFBIZ-11331)

Running ComponentContainerTest on windows fails due to parsing of paths of the
form '/c:/dev/....'
org.apache.ofbiz.base.container.ComponentContainerTest >
testCheckDependencyForComponent FAILED
java.nio.file.InvalidPathException at ComponentContainerTest.java:44

Line 44:
private Path ofbizHome = Paths.get(ComponentContainerTest.class.getResource
("testsdata").getFile()).toAbsolutePath().normalize();

PR created: #8

Thanks: Daniel WatfordNina Simone - My Baby Just Cares For Me.mp3
This commit is contained in:
Jacques Le Roux
2020-01-28 18:36:06 +01:00
parent 6d194cf8c3
commit c672c3a304
@@ -43,8 +43,7 @@ public class ComponentContainerTest {
private Path ofbizHome = Paths.get(ComponentContainerTest.class.getResource("testsdata").toURI())
.toAbsolutePath().normalize();
public ComponentContainerTest() throws URISyntaxException {
}
public ComponentContainerTest() throws URISyntaxException {}
@Before
public void setUp() throws IOException {