< prev index next >

tests/system/src/test/java/test/robot/com/sun/glass/ui/monocle/TouchExceptionTest.java

Print this page
rev 9504 : need to fix test log and others

@@ -23,11 +23,11 @@
  * questions.
  */
 
 package test.robot.com.sun.glass.ui.monocle;
 
-import com.sun.glass.ui.monocle.TestLog;
+import com.sun.glass.ui.monocle.TestLogShim;
 import test.robot.com.sun.glass.ui.monocle.TestApplication;
 import test.robot.com.sun.glass.ui.monocle.input.devices.TestTouchDevice;
 import test.robot.com.sun.glass.ui.monocle.input.devices.TestTouchDevices;
 import javafx.application.Platform;
 import javafx.scene.input.InputEvent;

@@ -50,11 +50,11 @@
     /** Throw an exception in an event handler */
     @Test
     public void testRuntimeException() throws Exception {
         Platform.runLater(
                 () -> Thread.currentThread()
-                        .setUncaughtExceptionHandler((t, e) -> TestLog.log(e.toString()))
+                        .setUncaughtExceptionHandler((t, e) -> TestLogShim.log(e.toString()))
         );
         TestApplication.getStage().getScene().addEventHandler(
                 InputEvent.ANY,
                 (e) -> { throw new RuntimeException(e.toString()); });
         final int x = (int) Math.round(width * 0.5);

@@ -63,9 +63,9 @@
         int p = device.addPoint(x, y);
         device.sync();
         // release
         device.removePoint(p);
         device.sync();
-        TestLog.waitForLog("Touch pressed: %d, %d", x, y);
-        TestLog.waitForLog("Touch released: %d, %d", x, y);
+        TestLogShim.waitForLog("Touch pressed: %d, %d", x, y);
+        TestLogShim.waitForLog("Touch released: %d, %d", x, y);
     }
 }
< prev index next >