mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
introduce: pass error message if non-physical expression can't be extracted
This commit is contained in:
@@ -271,7 +271,8 @@ public class IntroduceVariableTest extends LightCodeInsightTestCase {
|
||||
doTest(new MockIntroduceVariableHandler("sum", true, true, false, "int"){
|
||||
@Override
|
||||
protected void showErrorMessage(Project project, Editor editor, String message) {
|
||||
assertEquals("Cannot perform refactoring.\n" + "Selected block should represent an expression.", message);
|
||||
assertEquals("Cannot perform refactoring.\n" +
|
||||
"Extracting selected expression would change the semantic of the whole expression.", message);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user