changeset 6039:c7e94937d287

RT-35168: Remove debug print statements from launchertest.MainLauncherTest
author kcr
date Fri, 03 Jan 2014 05:22:32 -0800
parents 3e0a4ea8e8f6
children 703155c18442
files tests/system/src/test/java/launchertest/TestAppNoMainThreadCheck.java tests/system/src/test/java/launchertest/TestAppThreadCheck.java tests/system/src/test/java/launchertest/TestNotApplicationThreadCheck.java tests/system/src/test/java/launchertest/TestPreloader.java
diffstat 4 files changed, 0 insertions(+), 64 deletions(-) [+]
line wrap: on
line diff
--- a/tests/system/src/test/java/launchertest/TestAppNoMainThreadCheck.java	Fri Jan 03 09:29:34 2014 +0100
+++ b/tests/system/src/test/java/launchertest/TestAppNoMainThreadCheck.java	Fri Jan 03 05:22:32 2014 -0800
@@ -37,31 +37,19 @@
 public class TestAppNoMainThreadCheck extends Application {
 
     public TestAppNoMainThreadCheck() {
-        System.err.println("constructor: thread = " + Thread.currentThread());
-
         if (!Platform.isFxApplicationThread()) {
-            System.err.println("ERROR: constructor called from wrong thread: "
-                    + Thread.currentThread());
             System.exit(ERROR_CONSTRUCTOR_WRONG_THREAD);
         }
     }
 
     @Override public void init() {
-        System.err.println("init: thread = " + Thread.currentThread());
-
         if (Platform.isFxApplicationThread()) {
-            System.err.println("ERROR: init called from wrong thread: "
-                    + Thread.currentThread());
             System.exit(ERROR_INIT_WRONG_THREAD);
         }
     }
 
     @Override public void start(Stage stage) throws Exception {
-        System.err.println("start: thread = " + Thread.currentThread());
-
         if (!Platform.isFxApplicationThread()) {
-            System.err.println("ERROR: start called from wrong thread: "
-                    + Thread.currentThread());
             System.exit(ERROR_START_WRONG_THREAD);
         }
 
@@ -73,11 +61,7 @@
     }
 
     @Override public void stop() {
-        System.err.println("stop: thread = " + Thread.currentThread());
-
         if (!Platform.isFxApplicationThread()) {
-            System.err.println("ERROR: stop called from wrong thread: "
-                    + Thread.currentThread());
             System.exit(ERROR_STOP_WRONG_THREAD);
         }
 
@@ -85,10 +69,7 @@
     }
 
     static {
-        System.err.println("class init: thread = " + Thread.currentThread());
-
         if (!Platform.isFxApplicationThread()) {
-            System.err.println("ERROR: class init wrong thread: " + Thread.currentThread());
             Thread.dumpStack();
             System.exit(ERROR_CLASS_INIT_WRONG_THREAD);
         }
--- a/tests/system/src/test/java/launchertest/TestAppThreadCheck.java	Fri Jan 03 09:29:34 2014 +0100
+++ b/tests/system/src/test/java/launchertest/TestAppThreadCheck.java	Fri Jan 03 05:22:32 2014 -0800
@@ -37,31 +37,19 @@
 public class TestAppThreadCheck extends Application {
 
     public TestAppThreadCheck() {
-        System.err.println("constructor: thread = " + Thread.currentThread());
-
         if (!Platform.isFxApplicationThread()) {
-            System.err.println("ERROR: constructor called from wrong thread: "
-                    + Thread.currentThread());
             System.exit(ERROR_CONSTRUCTOR_WRONG_THREAD);
         }
     }
 
     @Override public void init() {
-        System.err.println("init: thread = " + Thread.currentThread());
-
         if (Platform.isFxApplicationThread()) {
-            System.err.println("ERROR: init called from wrong thread: "
-                    + Thread.currentThread());
             System.exit(ERROR_INIT_WRONG_THREAD);
         }
     }
 
     @Override public void start(Stage stage) throws Exception {
-        System.err.println("start: thread = " + Thread.currentThread());
-
         if (!Platform.isFxApplicationThread()) {
-            System.err.println("ERROR: start called from wrong thread: "
-                    + Thread.currentThread());
             System.exit(ERROR_START_WRONG_THREAD);
         }
 
@@ -73,11 +61,7 @@
     }
 
     @Override public void stop() {
-        System.err.println("stop: thread = " + Thread.currentThread());
-
         if (!Platform.isFxApplicationThread()) {
-            System.err.println("ERROR: stop called from wrong thread: "
-                    + Thread.currentThread());
             System.exit(ERROR_STOP_WRONG_THREAD);
         }
 
@@ -85,11 +69,7 @@
     }
 
     public static void main(String[] args) {
-        System.err.println("main: thread = " + Thread.currentThread());
-
         if (Platform.isFxApplicationThread()) {
-            System.err.println("ERROR: main called from wrong thread: "
-                    + Thread.currentThread());
             System.exit(ERROR_MAIN_WRONG_THREAD);
         }
 
@@ -97,10 +77,7 @@
     }
 
     static {
-        System.err.println("class init: thread = " + Thread.currentThread());
-
         if (!Platform.isFxApplicationThread()) {
-            System.err.println("ERROR: class init wrong thread: " + Thread.currentThread());
             System.exit(ERROR_CLASS_INIT_WRONG_THREAD);
         }
 
--- a/tests/system/src/test/java/launchertest/TestNotApplicationThreadCheck.java	Fri Jan 03 09:29:34 2014 +0100
+++ b/tests/system/src/test/java/launchertest/TestNotApplicationThreadCheck.java	Fri Jan 03 05:22:32 2014 -0800
@@ -53,10 +53,7 @@
     }
 
     static {
-        System.err.println("class init: thread = " + Thread.currentThread());
-
         if (Platform.isFxApplicationThread()) {
-            System.err.println("ERROR: class init wrong thread: " + Thread.currentThread());
             System.exit(ERROR_CLASS_INIT_WRONG_THREAD);
         }
     }
--- a/tests/system/src/test/java/launchertest/TestPreloader.java	Fri Jan 03 09:29:34 2014 +0100
+++ b/tests/system/src/test/java/launchertest/TestPreloader.java	Fri Jan 03 05:22:32 2014 -0800
@@ -38,31 +38,19 @@
 public class TestPreloader extends Preloader {
 
     public TestPreloader() {
-        System.err.println("preloader constructor: thread = " + Thread.currentThread());
-
         if (!Platform.isFxApplicationThread()) {
-            System.err.println("ERROR: preloader constructor called from wrong thread: "
-                    + Thread.currentThread());
             System.exit(ERROR_PRELOADER_CONSTRUCTOR_WRONG_THREAD);
         }
     }
 
     @Override public void init() {
-        System.err.println("preloader init: thread = " + Thread.currentThread());
-
         if (Platform.isFxApplicationThread()) {
-            System.err.println("ERROR: preloader init called from wrong thread: "
-                    + Thread.currentThread());
             System.exit(ERROR_PRELOADER_INIT_WRONG_THREAD);
         }
     }
 
     @Override public void start(Stage stage) throws Exception {
-        System.err.println("preloader start: thread = " + Thread.currentThread());
-
         if (!Platform.isFxApplicationThread()) {
-            System.err.println("ERROR: preloader start called from wrong thread: "
-                    + Thread.currentThread());
             System.exit(ERROR_PRELOADER_START_WRONG_THREAD);
         }
 
@@ -74,20 +62,13 @@
     }
 
     @Override public void stop() {
-        System.err.println("preloader stop: thread = " + Thread.currentThread());
-
         if (!Platform.isFxApplicationThread()) {
-            System.err.println("ERROR: preloader stop called from wrong thread: "
-                    + Thread.currentThread());
             System.exit(ERROR_PRELOADER_STOP_WRONG_THREAD);
         }
     }
 
     static {
-        System.err.println("preloader class init: thread = " + Thread.currentThread());
-
         if (!Platform.isFxApplicationThread()) {
-            System.err.println("ERROR: preloader class init wrong thread: " + Thread.currentThread());
             Thread.dumpStack();
             System.exit(ERROR_PRELOADER_CLASS_INIT_WRONG_THREAD);
         }