summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoman Shevchenko <roman.shevchenko@jetbrains.com>2014-09-12 12:51:55 +0400
committerRoman Shevchenko <roman.shevchenko@jetbrains.com>2014-09-12 12:51:55 +0400
commit69dc786510ddbabdeb9dce5013dc14a6419d3e4d (patch)
tree893717f9f3c1f1529cba0173fdc3e85e2c97c14a
parente74977d4673055980267bb3ee64da9b6d8d6e527 (diff)
downloadfernflower-69dc786510ddbabdeb9dce5013dc14a6419d3e4d.tar
fernflower-69dc786510ddbabdeb9dce5013dc14a6419d3e4d.tar.gz
fernflower-69dc786510ddbabdeb9dce5013dc14a6419d3e4d.tar.lz
fernflower-69dc786510ddbabdeb9dce5013dc14a6419d3e4d.tar.xz
fernflower-69dc786510ddbabdeb9dce5013dc14a6419d3e4d.zip
java-decompiler: NPE in test fixture; diagnostic
-rw-r--r--test/org/jetbrains/java/decompiler/DecompilerTestFixture.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/org/jetbrains/java/decompiler/DecompilerTestFixture.java b/test/org/jetbrains/java/decompiler/DecompilerTestFixture.java
index f8fb9a5..b82b65e 100644
--- a/test/org/jetbrains/java/decompiler/DecompilerTestFixture.java
+++ b/test/org/jetbrains/java/decompiler/DecompilerTestFixture.java
@@ -33,7 +33,7 @@ public class DecompilerTestFixture {
testDataDir = new File("testData");
if (!isTestDataDir(testDataDir)) testDataDir = new File("community/plugins/java-decompiler/engine/testData");
if (!isTestDataDir(testDataDir)) testDataDir = new File("plugins/java-decompiler/engine/testData");
- assertTrue(isTestDataDir(testDataDir));
+ assertTrue("current dir: " + new File("").getAbsolutePath(), isTestDataDir(testDataDir));
//noinspection SSBasedInspection
tempDir = File.createTempFile("decompiler_test_", "_dir");
@@ -51,7 +51,9 @@ public class DecompilerTestFixture {
}
public void tearDown() {
- delete(tempDir);
+ if (tempDir != null) {
+ delete(tempDir);
+ }
}
public File getTestDataDir() {