From c16034a44e289e6b3a84e35eb4b9dc9c1724a028 Mon Sep 17 00:00:00 2001 From: "Vladislav.Soroka" Date: Tue, 18 Oct 2016 17:17:35 +0300 Subject: [PATCH] gradle: fix artifact tests --- .../openapi/externalSystem/test/ExternalSystemTestCase.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/platform/external-system-impl/testSrc/com/intellij/openapi/externalSystem/test/ExternalSystemTestCase.java b/platform/external-system-impl/testSrc/com/intellij/openapi/externalSystem/test/ExternalSystemTestCase.java index 31d282afc691..94fbb9c3b953 100644 --- a/platform/external-system-impl/testSrc/com/intellij/openapi/externalSystem/test/ExternalSystemTestCase.java +++ b/platform/external-system-impl/testSrc/com/intellij/openapi/externalSystem/test/ExternalSystemTestCase.java @@ -492,9 +492,10 @@ public abstract class ExternalSystemTestCase extends UsefulTestCase { protected void assertArtifactOutput(String artifactName, TestFileSystemItem fs) { final Artifact artifact = ArtifactsTestUtil.findArtifact(myProject, artifactName); - final VirtualFile outputFile = artifact.getOutputFile(); + final String outputFile = artifact.getOutputFilePath(); assert outputFile != null; - final File file = VfsUtilCore.virtualToIoFile(outputFile); + final File file = new File(outputFile); + assert file.exists(); fs.assertFileEqual(file); }