diff --git a/platform/platform-tests/testSrc/com/intellij/concurrency/JobUtilTest.java b/platform/platform-tests/testSrc/com/intellij/concurrency/JobUtilTest.java index b75591c4ade0..ba89c989d908 100644 --- a/platform/platform-tests/testSrc/com/intellij/concurrency/JobUtilTest.java +++ b/platform/platform-tests/testSrc/com/intellij/concurrency/JobUtilTest.java @@ -59,7 +59,7 @@ public class JobUtilTest extends PlatformTestCase { long elapsed = System.currentTimeMillis() - start; int expected = 2 * (9950 + 50 * 1000) / JobSchedulerImpl.CORES_COUNT; String message = "Elapsed: " + elapsed + "; expected: " + expected; - System.out.println(message); + LOG.debug(message); assertTrue(message, elapsed < expected); } @@ -119,7 +119,7 @@ public class JobUtilTest extends PlatformTestCase { }); if (exception.get() != null) throw exception.get(); long finish = System.currentTimeMillis(); - System.out.println("Elapsed: "+(finish-start)+"ms"); + LOG.debug("Elapsed: "+(finish-start)+"ms"); assertEquals(list.size(), COUNT.get()); } } @@ -137,7 +137,7 @@ public class JobUtilTest extends PlatformTestCase { return true; }); long finish = System.currentTimeMillis(); - System.out.println("Elapsed: "+(finish-start)+"ms"); + LOG.debug("Elapsed: "+(finish-start)+"ms"); assertEquals(list.size()*list.size(), COUNT.get()); } } @@ -192,7 +192,7 @@ public class JobUtilTest extends PlatformTestCase { final List objects = Collections.nCopies(100000000, null); JobLauncher.getInstance().invokeConcurrentlyUnderProgress(objects, null, true, o -> { if (COUNT.incrementAndGet() == 100000) { - System.out.println("PCE"); + LOG.debug("PCE"); throw new MyException(); } return true; @@ -208,7 +208,7 @@ public class JobUtilTest extends PlatformTestCase { final List objects = Collections.nCopies(100000000, null); boolean success = JobLauncher.getInstance().invokeConcurrentlyUnderProgress(objects, null, true, o -> { if (COUNT.incrementAndGet() == 100000) { - System.out.println("PCE"); + LOG.debug("PCE"); return false; } return true; @@ -240,7 +240,7 @@ public class JobUtilTest extends PlatformTestCase { success = JobLauncher.getInstance().invokeConcurrentlyUnderProgress(list, null, false, name -> { boolean nestedSuccess = JobLauncher.getInstance().invokeConcurrentlyUnderProgress(ilist, null, false, integer -> { if (busySleep(1) == 1000) { - System.out.println("PCE"); + LOG.debug("PCE"); throw new MyException(); } return true; @@ -253,7 +253,7 @@ public class JobUtilTest extends PlatformTestCase { catch (MyException ignored) { } long finish = System.currentTimeMillis(); - System.out.println("Elapsed: "+(finish-start)+"ms"); + LOG.debug("Elapsed: "+(finish-start)+"ms"); //assertEquals(list.size()*list.size(), COUNT.get()); assertFalse(success); } @@ -306,7 +306,7 @@ public class JobUtilTest extends PlatformTestCase { return true; }; for (int i=0; i<10/*0*/; i++) { - System.out.println("i = " + i); + LOG.debug("i = " + i); processorCalled.set(0); final ProgressIndicator indicator = new EmptyProgressIndicator(); int N = 10000; diff --git a/platform/platform-tests/testSrc/com/intellij/openapi/vfs/impl/VirtualFilePointerTest.java b/platform/platform-tests/testSrc/com/intellij/openapi/vfs/impl/VirtualFilePointerTest.java index 2954be28b534..f64684569bb8 100644 --- a/platform/platform-tests/testSrc/com/intellij/openapi/vfs/impl/VirtualFilePointerTest.java +++ b/platform/platform-tests/testSrc/com/intellij/openapi/vfs/impl/VirtualFilePointerTest.java @@ -559,7 +559,7 @@ public class VirtualFilePointerTest extends PlatformTestCase { assertFalse(jarPointer.isValid()); UIUtil.dispatchAllInvocationEvents(); } - System.out.println("final i = " + i); + LOG.debug("final i = " + i); } private static void refreshVFS() { @@ -966,7 +966,7 @@ public class VirtualFilePointerTest extends PlatformTestCase { if (exception !=null) throw exception; Disposer.dispose(disposable); } - System.out.println("final i = " + i); + LOG.debug("final i = " + i); } public void testGetChildrenMustIncreaseModificationCountIfFoundNewFile() throws Exception { @@ -999,6 +999,6 @@ public class VirtualFilePointerTest extends PlatformTestCase { UIUtil.dispatchAllInvocationEvents(); } } - System.out.println("final i = " + i); + LOG.debug("final i = " + i); } } diff --git a/platform/platform-tests/testSrc/com/intellij/openapi/vfs/local/LocalFileSystemTest.java b/platform/platform-tests/testSrc/com/intellij/openapi/vfs/local/LocalFileSystemTest.java index 6e068725e098..56cafcce7188 100644 --- a/platform/platform-tests/testSrc/com/intellij/openapi/vfs/local/LocalFileSystemTest.java +++ b/platform/platform-tests/testSrc/com/intellij/openapi/vfs/local/LocalFileSystemTest.java @@ -480,7 +480,7 @@ public class LocalFileSystemTest extends PlatformTestCase { fail("Copying a file into a '.' path should have failed"); } catch (IOException e) { - System.out.println(e.getMessage()); + e.printStackTrace(); } topDir.refresh(false, true); diff --git a/platform/platform-tests/testSrc/com/intellij/util/AlarmTest.java b/platform/platform-tests/testSrc/com/intellij/util/AlarmTest.java index b80810eabb9a..4c3c8f2cfec4 100644 --- a/platform/platform-tests/testSrc/com/intellij/util/AlarmTest.java +++ b/platform/platform-tests/testSrc/com/intellij/util/AlarmTest.java @@ -107,7 +107,7 @@ public class AlarmTest extends PlatformTestCase { UIUtil.dispatchAllInvocationEvents(); } Map after = Thread.getAllStackTraces(); - System.out.println("before: "+before.size()+"; after: "+after.size()); + LOG.debug("before: "+before.size()+"; after: "+after.size()); assertTrue(after.size() - before.size() < 10); } @@ -163,7 +163,7 @@ public class AlarmTest extends PlatformTestCase { String s = sb.toString(); long elapsed = System.currentTimeMillis() - start; if (elapsed > delay/2) { - System.out.println("No no no no this agent is so overloaded I quit"); + System.err.println("No no no no this agent is so overloaded I quit"); return; } assertEquals(2, alarm.getActiveRequestCount());