From df02432118044188a5b95f84a89fe267f37f1064 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Fri, 25 Dec 2009 19:44:48 +0300 Subject: [PATCH] reference from render_to_response to template file --- .../testFramework/fixtures/impl/LightTempDirTestFixtureImpl.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/platform/testFramework/src/com/intellij/testFramework/fixtures/impl/LightTempDirTestFixtureImpl.java b/platform/testFramework/src/com/intellij/testFramework/fixtures/impl/LightTempDirTestFixtureImpl.java index cc417c15cc..818e59c3a2 100644 --- a/platform/testFramework/src/com/intellij/testFramework/fixtures/impl/LightTempDirTestFixtureImpl.java +++ b/platform/testFramework/src/com/intellij/testFramework/fixtures/impl/LightTempDirTestFixtureImpl.java @@ -134,7 +134,13 @@ public class LightTempDirTestFixtureImpl extends BaseFixture implements TempDirT } public VirtualFile getFile(@NonNls String path) { - return getSourceRoot().findFileByRelativePath(path); + final VirtualFile sourceRoot = getSourceRoot(); + final VirtualFile result = sourceRoot.findFileByRelativePath(path); + if (result == null) { + sourceRoot.refresh(false, true); + return sourceRoot.findFileByRelativePath(path); + } + return result; } @NotNull -- 2.11.4.GIT