summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorManuel Bentele2022-02-03 12:13:18 +0100
committerManuel Bentele2022-02-03 12:13:18 +0100
commitd81bd1875d6eae52befbe98488d569402a57a975 (patch)
treee19149c9fc79d3f2a3e8d10231f8508f37135a18 /src
parentFix resource path for disk tests on Windows platforms (diff)
downloadmaster-sync-shared-d81bd1875d6eae52befbe98488d569402a57a975.tar.gz
master-sync-shared-d81bd1875d6eae52befbe98488d569402a57a975.tar.xz
master-sync-shared-d81bd1875d6eae52befbe98488d569402a57a975.zip
Fix resource path for virtualizer config tests on Windows platforms
Diffstat (limited to 'src')
-rw-r--r--src/test/java/org/openslx/virtualization/configuration/logic/ConfigurationLogicTestResources.java12
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() );
}