From c405f325caf2cff57386895977e57e044b23f403 Mon Sep 17 00:00:00 2001 From: Dmitry Batkovich Date: Fri, 18 Aug 2017 15:17:31 +0300 Subject: [PATCH] long line inspection: fix test --- .../java-tests/testData/inspection/longLine/LongLine.java | 2 +- .../java/codeInspection/JavaLongLineInspectionTest.kt | 4 ++++ .../com/intellij/codeInspection/LongLineInspectionTest.java | 6 +----- 3 files changed, 6 insertions(+), 6 deletions(-) rename platform/lang-impl/testData/codeInspection/longLine/longLine.java => java/java-tests/testData/inspection/longLine/LongLine.java (92%) diff --git a/platform/lang-impl/testData/codeInspection/longLine/longLine.java b/java/java-tests/testData/inspection/longLine/LongLine.java similarity index 92% rename from platform/lang-impl/testData/codeInspection/longLine/longLine.java rename to java/java-tests/testData/inspection/longLine/LongLine.java index c5dd6d771ea4..4f1cc7ee2a2c 100644 --- a/platform/lang-impl/testData/codeInspection/longLine/longLine.java +++ b/java/java-tests/testData/inspection/longLine/LongLine.java @@ -1,6 +1,6 @@ class A { - void meeeeeeeeeeeeeeeeeeeeeeeeetttttttttttttttttttttttthhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhooooooooooooooodddddd() { + void meeeeeeeeeeeeeeeeeeeeeeeeetttttttttttttttttttttttthhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhooooooooooooooodddddd() { //previous line is very long } diff --git a/java/java-tests/testSrc/com/intellij/java/codeInspection/JavaLongLineInspectionTest.kt b/java/java-tests/testSrc/com/intellij/java/codeInspection/JavaLongLineInspectionTest.kt index 57b9b0c1cfab..804ee917822d 100644 --- a/java/java-tests/testSrc/com/intellij/java/codeInspection/JavaLongLineInspectionTest.kt +++ b/java/java-tests/testSrc/com/intellij/java/codeInspection/JavaLongLineInspectionTest.kt @@ -26,6 +26,10 @@ class JavaLongLineInspectionTest : JavaCodeInsightFixtureTestCase() { doTest() } + fun testLongLine() { + doTest() + } + private fun doTest() { myFixture.enableInspections(LongLineInspection()) myFixture.testHighlighting(true, false, false, getTestName(false) + ".java") diff --git a/platform/lang-impl/testSources/com/intellij/codeInspection/LongLineInspectionTest.java b/platform/lang-impl/testSources/com/intellij/codeInspection/LongLineInspectionTest.java index 3d597cf4da63..464022ddf6f6 100644 --- a/platform/lang-impl/testSources/com/intellij/codeInspection/LongLineInspectionTest.java +++ b/platform/lang-impl/testSources/com/intellij/codeInspection/LongLineInspectionTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2015 JetBrains s.r.o. + * Copyright 2000-2017 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -30,10 +30,6 @@ public class LongLineInspectionTest extends LightPlatformCodeInsightFixtureTestC doTest("java"); } - public void testLongLine() { - doTest("java"); - } - public void testXmlLongLine() { doTest("xml"); }