diff options
author | Manuel Bentele | 2022-02-03 12:13:18 +0100 |
---|---|---|
committer | Manuel Bentele | 2022-02-03 12:13:18 +0100 |
commit | d81bd1875d6eae52befbe98488d569402a57a975 (patch) | |
tree | e19149c9fc79d3f2a3e8d10231f8508f37135a18 | |
parent | Fix resource path for disk tests on Windows platforms (diff) | |
download | master-sync-shared-d81bd18.tar.gz master-sync-shared-d81bd18.tar.xz master-sync-shared-d81bd18.zip |
Fix resource path for virtualizer config tests on Windows platforms
-rw-r--r-- | src/test/java/org/openslx/virtualization/configuration/logic/ConfigurationLogicTestResources.java | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/test/java/org/openslx/virtualization/configuration/logic/ConfigurationLogicTestResources.java b/src/test/java/org/openslx/virtualization/configuration/logic/ConfigurationLogicTestResources.java index ceafceb..1b77d03 100644 --- a/src/test/java/org/openslx/virtualization/configuration/logic/ConfigurationLogicTestResources.java +++ b/src/test/java/org/openslx/virtualization/configuration/logic/ConfigurationLogicTestResources.java @@ -3,17 +3,19 @@ package org.openslx.virtualization.configuration.logic; import java.io.File; import java.net.URL; +import org.openslx.util.Resources; + public class ConfigurationLogicTestResources { - private static final String VMWARE_PREFIX_PATH = File.separator + "vmware"; - private static final String VMWARE_PREFIX_PATH_VMX = VMWARE_PREFIX_PATH + File.separator + "vmx"; + private static final String VMWARE_PREFIX_PATH = Resources.PATH_SEPARATOR + "vmware"; + private static final String VMWARE_PREFIX_PATH_VMX = VMWARE_PREFIX_PATH + Resources.PATH_SEPARATOR + "vmx"; - private static final String VIRTUALBOX_PREFIX_PATH = File.separator + "virtualbox"; - private static final String VIRTUALBOX_PREFIX_PATH_XML = VIRTUALBOX_PREFIX_PATH + File.separator + "xml"; + private static final String VIRTUALBOX_PREFIX_PATH = Resources.PATH_SEPARATOR + "virtualbox"; + private static final String VIRTUALBOX_PREFIX_PATH_XML = VIRTUALBOX_PREFIX_PATH + Resources.PATH_SEPARATOR + "xml"; private static File getFile( String prefixPath, String fileName ) { - final String filePath = prefixPath + File.separator + fileName; + final String filePath = prefixPath + Resources.PATH_SEPARATOR + fileName; final URL fileUrl = ConfigurationLogicTestResources.class.getResource( filePath ); return new File( fileUrl.getFile() ); } |