Revert "IDEA-217722 Encapsulate field: remove obsolete tests"

This reverts commit 8a121a92

GitOrigin-RevId: 79821c52e6fdfd8587fb523f91f393523ddace77
This commit is contained in:
Max Medvedev
2019-07-11 15:17:00 +03:00
committed by intellij-monorepo-bot
parent e11c6007c5
commit adc488ca04
5 changed files with 58 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
// "Encapsulate field" "false"
class A {
public final boolean m_bool;
}
public class B {
void method() {
A a = new A();
a.m_bo<caret>ol = true;
}
}

View File

@@ -0,0 +1,13 @@
// "Encapsulate field" "false"
class A {
private boolean m_bool;
}
public class B {
void method() {
A a = new A();
a.m_bo<caret>ol = true;
}
}

View File

@@ -0,0 +1,9 @@
// "Encapsulate field" "false"
class A {
public final boolean m_bool;
void method() {
m_bo<caret>ol = true;
}
}

View File

@@ -0,0 +1,9 @@
// "Encapsulate field" "false"
class A {
public final boolean m_bool;
void method() {
this.m_bo<caret>ol = true;
}
}

View File

@@ -0,0 +1,14 @@
// 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.intention;
import com.intellij.codeInsight.daemon.LightIntentionActionTestCase;
/**
* @author Danila Ponomarenko
*/
public class EncapsulateFieldTest extends LightIntentionActionTestCase {
@Override
protected String getBasePath() {
return "/codeInsight/daemonCodeAnalyzer/quickFix/encapsulateField";
}
}