Intentions: assert the hint is closed only when there is nothing to show in it

This commit is contained in:
andrey zaytsev
2018-03-08 00:38:20 +03:00
parent c814091777
commit 7f87c20288
@@ -2293,8 +2293,9 @@ public class DaemonRespondToChangesTest extends DaemonAnalyzerTestCase {
// it must be either hidden or not have that error anymore
if (lastHintAfterDeletion != null) {
assertFalse(lastHintBeforeDeletion.getCachedIntentions().toString(), lastHintBeforeDeletion.getCachedIntentions().getErrorFixes().stream().anyMatch(e -> e.getText().equals("Initialize variable 'var'")));
} else {
assertEmpty(visibleHints);
}
assertEmpty(visibleHints);
}
public void testCodeFoldingPassRestartsOnRegionUnfolding() {