pump events from EncodingProjectManagerImpl.reloadAllFilesUnder

This commit is contained in:
Alexey Kudravtsev
2014-09-16 15:27:24 +04:00
parent 9d28dd76e3
commit 46fb955308
@@ -54,6 +54,12 @@ public class LossyEncodingTest extends DaemonAnalyzerTestCase {
return new LocalInspectionTool[]{new LossyEncodingInspection()};
}
@Override
protected void tearDown() throws Exception {
UIUtil.dispatchAllInvocationEvents(); // invokeLater() in EncodingProjectManagerImpl.reloadAllFilesUnder()
super.tearDown();
}
public void testText() throws Exception {
doTest("Text.txt");
Charset ascii = CharsetToolkit.forName("US-ASCII");
@@ -115,6 +121,7 @@ public class LossyEncodingTest extends DaemonAnalyzerTestCase {
private void doTest(@NonNls String filePath) throws Exception {
doTest(BASE_PATH + "/" + filePath, true, false);
UIUtil.dispatchAllInvocationEvents();
}
public void testNativeEncoding() throws Exception {