[
https://issues.apache.org/jira/browse/OFBIZ-11331?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17025186#comment-17025186 ]
ASF subversion and git services commented on OFBIZ-11331:
---------------------------------------------------------
Commit 6d194cf8c363435e212282e31f575ca93f14d72d in ofbiz-framework's branch refs/heads/trunk from Jacques Le Roux
[
https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=6d194cf ]
OFBIZ-11331: Allow ComponentContainerTest to run on windows (#8)
* Get Path from URI than a string representation of a file path when building Path to test resources.
* Removed unused test imports.
> Cannot run ComponentContainerTest on windows
> --------------------------------------------
>
> Key: OFBIZ-11331
> URL:
https://issues.apache.org/jira/browse/OFBIZ-11331> Project: OFBiz
> Issue Type: Bug
> Components: base
> Affects Versions: Trunk
> Reporter: Daniel Watford
> Assignee: Jacques Le Roux
> Priority: Major
> Time Spent: 40m
> Remaining Estimate: 0h
>
> Running ComponentContainerTest on windows fails due to parsing of paths of the form '/c:/dev/....'
> {quote}org.apache.ofbiz.base.container.ComponentContainerTest > testCheckDependencyForComponent FAILED
> java.nio.file.InvalidPathException at ComponentContainerTest.java:44
> {quote}
> Line 44:
> {quote}private Path ofbizHome = Paths.get(ComponentContainerTest.class.getResource("testsdata").getFile())
> .toAbsolutePath().normalize();
> {quote}
>
> PR created: [
https://github.com/apache/ofbiz-framework/pull/8]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)