Records error highlighting: testcase class (part of IDEA-228460)

GitOrigin-RevId: 315597a0f1f6d86e14a597f8ee19087474acad30
This commit is contained in:
Tagir Valeev
2019-12-18 03:44:26 +00:00
committed by intellij-monorepo-bot
parent 1f36d492b7
commit 7d92e68b21
@@ -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();
}
}