[ofbiz-framework] branch trunk updated: Fixed: Cannot run ComponentContainerTest on windows (OFBIZ-11331)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ofbiz-framework] branch trunk updated: Fixed: Cannot run ComponentContainerTest on windows (OFBIZ-11331)

jleroux@apache.org
This is an automated email from the ASF dual-hosted git repository.

jleroux pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/trunk by this push:
     new c672c3a  Fixed: Cannot run ComponentContainerTest on windows (OFBIZ-11331)
c672c3a is described below

commit c672c3a30453039b8b724ff8d604b244a4dde19f
Author: Jacques Le Roux <[hidden email]>
AuthorDate: Tue Jan 28 18:36:06 2020 +0100

    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
---
 .../java/org/apache/ofbiz/base/container/ComponentContainerTest.java   | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/framework/base/src/test/java/org/apache/ofbiz/base/container/ComponentContainerTest.java b/framework/base/src/test/java/org/apache/ofbiz/base/container/ComponentContainerTest.java
index cd70496..16a8c73 100644
--- a/framework/base/src/test/java/org/apache/ofbiz/base/container/ComponentContainerTest.java
+++ b/framework/base/src/test/java/org/apache/ofbiz/base/container/ComponentContainerTest.java
@@ -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 {