From 3c5ad217b8040b822aaf220ac1cbf1b280415d22 Mon Sep 17 00:00:00 2001 From: "Egor.Ushakov" Date: Mon, 20 Jan 2014 17:20:02 +0400 Subject: [PATCH] fix test attempt 2 --- .../src/com/intellij/execution/ExecutionTestCase.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/java/testFramework/src/com/intellij/execution/ExecutionTestCase.java b/java/testFramework/src/com/intellij/execution/ExecutionTestCase.java index 075c6816ee10..bb8c0d097d36 100644 --- a/java/testFramework/src/com/intellij/execution/ExecutionTestCase.java +++ b/java/testFramework/src/com/intellij/execution/ExecutionTestCase.java @@ -230,11 +230,15 @@ public abstract class ExecutionTestCase extends IdeaTestCase { // assertTrue(null, condition); // } - private static final int CURRENT_VERSION = 6; - private static final String VERSION_FILE_NAME = "version-" + CURRENT_VERSION; + //private static final int CURRENT_VERSION = 6; + protected int getTestAppVersion() { + return 6; + } + protected void ensureCompiledAppExists() throws Exception { final String appPath = getTestAppPath(); final File classesDir = new File(appPath, CLASSES); + String VERSION_FILE_NAME = "version-" + getTestAppVersion(); final File versionFile = new File(classesDir, VERSION_FILE_NAME); if (!classesDir.exists() || !versionFile.exists() || !hasCompiledClasses(classesDir)) { FileUtil.delete(classesDir);