From 7d92e68b21c2860d0021f90ba6f3908a51ed687a Mon Sep 17 00:00:00 2001 From: Tagir Valeev Date: Wed, 18 Dec 2019 10:02:20 +0700 Subject: [PATCH] Records error highlighting: testcase class (part of IDEA-228460) GitOrigin-RevId: 315597a0f1f6d86e14a597f8ee19087474acad30 --- .../daemon/LightRecordsHighlightingTest.java | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 java/java-tests/testSrc/com/intellij/java/codeInsight/daemon/LightRecordsHighlightingTest.java diff --git a/java/java-tests/testSrc/com/intellij/java/codeInsight/daemon/LightRecordsHighlightingTest.java b/java/java-tests/testSrc/com/intellij/java/codeInsight/daemon/LightRecordsHighlightingTest.java new file mode 100644 index 000000000000..66d5a76ae721 --- /dev/null +++ b/java/java-tests/testSrc/com/intellij/java/codeInsight/daemon/LightRecordsHighlightingTest.java @@ -0,0 +1,29 @@ +// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. +package com.intellij.java.codeInsight.daemon; + +import com.intellij.JavaTestUtil; +import com.intellij.testFramework.LightProjectDescriptor; +import com.intellij.testFramework.fixtures.LightJavaCodeInsightFixtureTestCase; +import org.jetbrains.annotations.NotNull; + +public class LightRecordsHighlightingTest extends LightJavaCodeInsightFixtureTestCase { + @Override + protected String getBasePath() { + return JavaTestUtil.getRelativeJavaTestDataPath() + "/codeInsight/daemonCodeAnalyzer/advHighlightingRecords"; + } + + @NotNull + @Override + protected LightProjectDescriptor getProjectDescriptor() { + return JAVA_14; + } + + public void testRecordBasics() { + doTest(); + } + + private void doTest() { + myFixture.configureByFile(getTestName(false) + ".java"); + myFixture.checkHighlighting(); + } +} \ No newline at end of file