Class ExportImportUtil
- java.lang.Object
-
- com._1c.g5.v8.dt.testing.platform.ExportImportUtil
-
public class ExportImportUtil extends Object
Helper for platform import/export operations
-
-
Constructor Summary
Constructors Constructor Description ExportImportUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
assertPlatformFilesEqual(Path expectedPlatformPath, Path actualPlatformPath)
Checks two directories with platform xml filesstatic void
assertProjectEquals(org.eclipse.core.resources.IProject expectedProject, org.eclipse.core.resources.IProject actualProject)
Checks two projects and reports errors if anystatic void
exportXml(Path xmlPath, Configuration configuration, IExportService exportService)
Executes export operationstatic Optional<Path>
getBundleEntry(String path, Class<?> bundleClass)
Returns bundle file entry by its path.
-
-
-
Method Detail
-
getBundleEntry
public static Optional<Path> getBundleEntry(String path, Class<?> bundleClass)
Returns bundle file entry by its path.- Parameters:
path
- path, cannot benull
bundleClass
- bundle class, cannot benull
- Returns:
- optional path, never
null
-
exportXml
public static void exportXml(Path xmlPath, Configuration configuration, IExportService exportService) throws ExportException, IOException, ExportException
Executes export operation- Parameters:
xmlPath
- xml path, cannot benull
configuration
- configuration, cannot benull
exportService
- export service, cannot benull
- Throws:
ExportException
IOException
ExportException
-
assertProjectEquals
public static void assertProjectEquals(org.eclipse.core.resources.IProject expectedProject, org.eclipse.core.resources.IProject actualProject) throws Exception
Checks two projects and reports errors if any- Parameters:
expectedProject
- expected project to compare with, cannot benull
actualProject
- actual project to compare with, cannot benull
- Throws:
Exception
-
assertPlatformFilesEqual
public static void assertPlatformFilesEqual(Path expectedPlatformPath, Path actualPlatformPath) throws Exception
Checks two directories with platform xml files- Parameters:
expectedPlatformPath
- expected platform path to compare with, cannot benull
actualPlatformPath
- actual platform path to compare with, cannot benull
- Throws:
Exception
-
-