From a6d19ca1cb998649dfc54cea71f508927acedf6d Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Fri, 25 Sep 2009 21:32:24 +0400 Subject: [PATCH] moving tests to CE --- .../testData}/inspection/unusedReturnValue/hierarchy/expected.xml | 0 .../testData}/inspection/unusedReturnValue/hierarchy/src/B.java | 0 .../testData}/inspection/unusedReturnValue/hierarchy/src/I.java | 0 .../testData}/inspection/unusedReturnValue/nonLiteral/expected.xml | 0 .../testData}/inspection/unusedReturnValue/nonLiteral/src/Test.java | 0 .../testSrc}/com/intellij/codeInspection/UnusedReturnValueTest.java | 5 +++++ 6 files changed, 5 insertions(+) rename {testData => java/java-tests/testData}/inspection/unusedReturnValue/hierarchy/expected.xml (100%) rename {testData => java/java-tests/testData}/inspection/unusedReturnValue/hierarchy/src/B.java (100%) rename {testData => java/java-tests/testData}/inspection/unusedReturnValue/hierarchy/src/I.java (100%) rename {testData => java/java-tests/testData}/inspection/unusedReturnValue/nonLiteral/expected.xml (100%) rename {testData => java/java-tests/testData}/inspection/unusedReturnValue/nonLiteral/src/Test.java (100%) rename {inspections/tests => java/java-tests/testSrc}/com/intellij/codeInspection/UnusedReturnValueTest.java (82%) diff --git a/testData/inspection/unusedReturnValue/hierarchy/expected.xml b/java/java-tests/testData/inspection/unusedReturnValue/hierarchy/expected.xml similarity index 100% rename from testData/inspection/unusedReturnValue/hierarchy/expected.xml rename to java/java-tests/testData/inspection/unusedReturnValue/hierarchy/expected.xml diff --git a/testData/inspection/unusedReturnValue/hierarchy/src/B.java b/java/java-tests/testData/inspection/unusedReturnValue/hierarchy/src/B.java similarity index 100% rename from testData/inspection/unusedReturnValue/hierarchy/src/B.java rename to java/java-tests/testData/inspection/unusedReturnValue/hierarchy/src/B.java diff --git a/testData/inspection/unusedReturnValue/hierarchy/src/I.java b/java/java-tests/testData/inspection/unusedReturnValue/hierarchy/src/I.java similarity index 100% rename from testData/inspection/unusedReturnValue/hierarchy/src/I.java rename to java/java-tests/testData/inspection/unusedReturnValue/hierarchy/src/I.java diff --git a/testData/inspection/unusedReturnValue/nonLiteral/expected.xml b/java/java-tests/testData/inspection/unusedReturnValue/nonLiteral/expected.xml similarity index 100% rename from testData/inspection/unusedReturnValue/nonLiteral/expected.xml rename to java/java-tests/testData/inspection/unusedReturnValue/nonLiteral/expected.xml diff --git a/testData/inspection/unusedReturnValue/nonLiteral/src/Test.java b/java/java-tests/testData/inspection/unusedReturnValue/nonLiteral/src/Test.java similarity index 100% rename from testData/inspection/unusedReturnValue/nonLiteral/src/Test.java rename to java/java-tests/testData/inspection/unusedReturnValue/nonLiteral/src/Test.java diff --git a/inspections/tests/com/intellij/codeInspection/UnusedReturnValueTest.java b/java/java-tests/testSrc/com/intellij/codeInspection/UnusedReturnValueTest.java similarity index 82% rename from inspections/tests/com/intellij/codeInspection/UnusedReturnValueTest.java rename to java/java-tests/testSrc/com/intellij/codeInspection/UnusedReturnValueTest.java index ab344c3076..80f9c7c929 100644 --- a/inspections/tests/com/intellij/codeInspection/UnusedReturnValueTest.java +++ b/java/java-tests/testSrc/com/intellij/codeInspection/UnusedReturnValueTest.java @@ -10,12 +10,17 @@ */ package com.intellij.codeInspection; +import com.intellij.JavaTestUtil; import com.intellij.codeInspection.unusedReturnValue.UnusedReturnValue; import com.intellij.testFramework.InspectionTestCase; public class UnusedReturnValueTest extends InspectionTestCase { private final UnusedReturnValue myTool = new UnusedReturnValue(); + @Override + protected String getTestDataPath() { + return JavaTestUtil.getJavaTestDataPath() + "/inspection"; + } private void doTest() throws Exception { doTest("unusedReturnValue/" + getTestName(false), myTool); -- 2.11.4.GIT