Index: trunk/test/functional/org/openstreetmap/josm/gui/history/HistoryBrowserTest.java
===================================================================
--- trunk/test/functional/org/openstreetmap/josm/gui/history/HistoryBrowserTest.java	(revision 6636)
+++ trunk/test/functional/org/openstreetmap/josm/gui/history/HistoryBrowserTest.java	(revision 6643)
@@ -82,5 +82,5 @@
             ds = reader.parseHistory(NullProgressMonitor.INSTANCE);
         } catch(OsmTransferException e) {
-            e.printStackTrace();
+            Main.error(e);
             return;
         }
Index: trunk/test/functional/org/openstreetmap/josm/io/UploadStrategySelectionPanelTest.java
===================================================================
--- trunk/test/functional/org/openstreetmap/josm/io/UploadStrategySelectionPanelTest.java	(revision 6636)
+++ trunk/test/functional/org/openstreetmap/josm/io/UploadStrategySelectionPanelTest.java	(revision 6643)
@@ -12,4 +12,5 @@
 import javax.swing.JTextField;
 
+import org.openstreetmap.josm.Main;
 import org.openstreetmap.josm.gui.io.UploadStrategySelectionPanel;
 import org.openstreetmap.josm.gui.progress.NullProgressMonitor;
@@ -40,5 +41,5 @@
                             n = Integer.parseInt(tf.getText());
                         } catch(NumberFormatException e) {
-                            e.printStackTrace();
+                            Main.error(e);
                             return;
                         }
@@ -49,4 +50,8 @@
         return pnl;
     }
+    
+    /**
+     * Constructs a new {@code UploadStrategySelectionPanelTest}.
+     */
     public UploadStrategySelectionPanelTest() {
         build();
