suggest AddEmptyRecordHeaderFix in case of no record header

GitOrigin-RevId: ac6a585e1ccdb091a02d49d2f8bf2e55bf2114cb
This commit is contained in:
Roman.Ivanov
2019-12-24 08:41:04 +00:00
committed by intellij-monorepo-bot
parent ca80fb7215
commit 2cc8b2c194
8 changed files with 94 additions and 2 deletions
@@ -0,0 +1,3 @@
// "Insert '()'" "true"
record A() {}
@@ -0,0 +1,3 @@
// "Insert '()'" "true"
record <caret>A {}
@@ -0,0 +1,20 @@
// Copyright 2000-2018 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.quickFix;
import com.intellij.codeInsight.daemon.quickFix.LightQuickFixParameterizedTestCase;
import com.intellij.testFramework.LightProjectDescriptor;
import com.intellij.testFramework.fixtures.LightJavaCodeInsightFixtureTestCase;
import org.jetbrains.annotations.NotNull;
public class AddEmptyRecordHeaderTest extends LightQuickFixParameterizedTestCase {
@NotNull
@Override
protected LightProjectDescriptor getProjectDescriptor() {
return LightJavaCodeInsightFixtureTestCase.JAVA_14;
}
@Override
protected String getBasePath() {
return "/codeInsight/daemonCodeAnalyzer/quickFix/addEmptyRecordHeader";
}
}