You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by se...@apache.org on 2011/11/16 14:34:34 UTC

svn commit: r1202701 - /jmeter/trunk/test/src/org/apache/jmeter/junit/JMeterTest.java

Author: sebb
Date: Wed Nov 16 13:34:34 2011
New Revision: 1202701

URL: http://svn.apache.org/viewvc?rev=1202701&view=rev
Log:
Identify where test setup error messages are coming from

Modified:
    jmeter/trunk/test/src/org/apache/jmeter/junit/JMeterTest.java

Modified: jmeter/trunk/test/src/org/apache/jmeter/junit/JMeterTest.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/test/src/org/apache/jmeter/junit/JMeterTest.java?rev=1202701&r1=1202700&r2=1202701&view=diff
==============================================================================
--- jmeter/trunk/test/src/org/apache/jmeter/junit/JMeterTest.java (original)
+++ jmeter/trunk/test/src/org/apache/jmeter/junit/JMeterTest.java Wed Nov 16 13:34:34 2011
@@ -280,7 +280,7 @@ public class JMeterTest extends JMeterTe
         while (iter.hasNext()) {
             JMeterGUIComponent item = (JMeterGUIComponent) iter.next();
             if (item instanceof JMeterTreeNode) {
-                System.out.println("INFO: JMeterGUIComponent: skipping all tests  " + item.getClass().getName());
+                System.out.println("o.a.j.junit.JMeterTest INFO: JMeterGUIComponent: skipping all tests  " + item.getClass().getName());
                 continue;
             }
             if (item instanceof ObsoleteGui){
@@ -289,7 +289,7 @@ public class JMeterTest extends JMeterTe
             TestSuite ts = new TestSuite(item.getClass().getName());
             ts.addTest(new JMeterTest("GUIComponents1", item));
             if (item instanceof TestBeanGUI) {
-                System.out.println("INFO: JMeterGUIComponent: skipping some tests " + item.getClass().getName());
+                System.out.println("o.a.j.junit.JMeterTest INFO: JMeterGUIComponent: skipping some tests " + item.getClass().getName());
             } else {
                 ts.addTest(new JMeterTest("GUIComponents2", item));
                 ts.addTest(new JMeterTest("runGUITitle", item));
@@ -334,7 +334,7 @@ public class JMeterTest extends JMeterTe
                 ts.addTest(new JMeterTest("runGUITitle", item));
                 suite.addTest(ts);
             } catch (IllegalArgumentException e) {
-                System.out.println("Cannot create test for " + c.getName() + " " + e);
+                System.out.println("o.a.j.junit.JMeterTest Cannot create test for " + c.getName() + " " + e);
                 e.printStackTrace(System.out);
             }
         }
@@ -583,23 +583,23 @@ public class JMeterTest extends JMeterTe
                                     new Object[] { myThis }));
                         } catch (NoSuchMethodException f) {
                             // no luck. Ignore this class
-                            System.out.println("WARN: " + exName + ": NoSuchMethodException  " + n);
+                            System.out.println("o.a.j.junit.JMeterTest WARN: " + exName + ": NoSuchMethodException  " + n);
                         }
                     }
                 } catch (NoClassDefFoundError e) {
                     // no luck. Ignore this class
-                    System.out.println("WARN: " + exName + ": NoClassDefFoundError " + n);
+                    System.out.println("o.a.j.junit.JMeterTest WARN: " + exName + ": NoClassDefFoundError " + n);
                 } catch (IllegalAccessException e) {
                     caught = e;
-                    System.out.println("WARN: " + exName + ": IllegalAccessException " + n);
+                    System.out.println("o.a.j.junit.JMeterTest WARN: " + exName + ": IllegalAccessException " + n);
                     // We won't test restricted-access classes.
                 } catch (HeadlessException e) {
                     caught = e;
-                    System.out.println("Error creating "+n+" "+e.toString());
+                    System.out.println("o.a.j.junit.JMeterTest Error creating "+n+" "+e.toString());
                 } catch (Exception e) {
                     caught = e;
                     if (e instanceof RemoteException) { // not thrown, so need to check here
-                        System.out.println("WARN: " + "Error creating " + n + " " + e.toString());
+                        System.out.println("o.a.j.junit.JMeterTest WARN: " + "Error creating " + n + " " + e.toString());
                     } else {
                         throw new Exception("Error creating " + n, e);
                     }