summaryrefslogtreecommitdiffstats
path: root/core/modules/qemu/runvirt-plugin-qemu/src/test/java/org/openslx/runvirt/plugin/qemu/configuration/TransformationTestResources.java
blob: b04685f92ad9778798035748768ef9c2a7f11bc7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package org.openslx.runvirt.plugin.qemu.configuration;

import java.io.File;
import java.net.URL;

public class TransformationTestResources
{
	private static final String LIBVIRT_PREFIX_PATH = File.separator + "libvirt";
	private static final String LIBVIRT_PREFIX_PATH_XML = LIBVIRT_PREFIX_PATH + File.separator + "xml";

	public static File getLibvirtXmlFile( String libvirtXmlFileName )
	{
		String libvirtXmlPath = TransformationTestResources.LIBVIRT_PREFIX_PATH_XML + File.separator + libvirtXmlFileName;
		URL libvirtXml = TransformationTestResources.class.getResource( libvirtXmlPath );
		return new File( libvirtXml.getFile() );
	}
}