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 2017/02/22 12:22:54 UTC

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

Author: sebb
Date: Wed Feb 22 12:22:54 2017
New Revision: 1784015

URL: http://svn.apache.org/viewvc?rev=1784015&view=rev
Log:
Ignore enums when testing Serialisation

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=1784015&r1=1784014&r2=1784015&view=diff
==============================================================================
--- jmeter/trunk/test/src/org/apache/jmeter/junit/JMeterTest.java (original)
+++ jmeter/trunk/test/src/org/apache/jmeter/junit/JMeterTest.java Wed Feb 22 12:22:54 2017
@@ -462,7 +462,10 @@ public class JMeterTest extends JMeterTe
                                     new Object[] { myThis }));
                         } catch (NoSuchMethodException f) {
                             // no luck. Ignore this class
-                            System.out.println("o.a.j.junit.JMeterTest WARN: " + exName + ": NoSuchMethodException  " + n + ", missing empty Constructor or Constructor with Object parameter");
+                            if (!Enum.class.isAssignableFrom(c)) { // ignore enums
+                                System.out.println("o.a.j.junit.JMeterTest WARN: " + exName + ": NoSuchMethodException  " + 
+                                    n + ", missing empty Constructor or Constructor with Object parameter");                                
+                            }
                         }
                     }
                 } catch (NoClassDefFoundError e) {