mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 13:02:30 +07:00
Revert "IDEA-217722 Encapsulate field: remove obsolete tests"
This reverts commit 8a121a92 GitOrigin-RevId: 79821c52e6fdfd8587fb523f91f393523ddace77
This commit is contained in:
committed by
intellij-monorepo-bot
parent
e11c6007c5
commit
adc488ca04
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Encapsulate field" "false"
|
||||
|
||||
class A {
|
||||
public final boolean m_bool;
|
||||
|
||||
void method() {
|
||||
m_bo<caret>ol = true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Encapsulate field" "false"
|
||||
|
||||
class A {
|
||||
public final boolean m_bool;
|
||||
|
||||
void method() {
|
||||
this.m_bo<caret>ol = true;
|
||||
}
|
||||
}
|
||||
@@ -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";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user