jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1620293 - /jmeter/trunk/test/src/org/apache/jmeter/JMeterVersionTest.java
Date Mon, 25 Aug 2014 11:10:50 GMT
Author: pmouawad
Date: Mon Aug 25 11:10:50 2014
New Revision: 1620293

URL: http://svn.apache.org/r1620293
Log:
Add more controls and debugging

Modified:
    jmeter/trunk/test/src/org/apache/jmeter/JMeterVersionTest.java

Modified: jmeter/trunk/test/src/org/apache/jmeter/JMeterVersionTest.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/test/src/org/apache/jmeter/JMeterVersionTest.java?rev=1620293&r1=1620292&r2=1620293&view=diff
==============================================================================
--- jmeter/trunk/test/src/org/apache/jmeter/JMeterVersionTest.java (original)
+++ jmeter/trunk/test/src/org/apache/jmeter/JMeterVersionTest.java Mon Aug 25 11:10:50 2014
@@ -99,6 +99,10 @@ public class JMeterVersionTest extends J
         prop = buildProp;
     }
 
+    /**
+     * Check eclipse.classpath contains the jars declared in build.properties
+     * @throws Exception
+     */
     public void testEclipse() throws Exception {
         final BufferedReader eclipse = new BufferedReader(
                 new FileReader(getFileFromHome("eclipse.classpath"))); // assume default
charset is OK here
@@ -129,6 +133,10 @@ public class JMeterVersionTest extends J
                     }
                 }
                 String expected = versions.get(jar);
+                if(expected == null) {
+                    System.err.println("Didn't find version for jar name extracted by regexp,
jar name extracted:"+jar+", version extracted:"+version+", current line:"+line);
+                    fail("Didn't find version for jar name extracted by regexp, jar name
extracted:"+jar+", version extracted:"+version+", current line:"+line);
+                }
                 // Process ${xxx.version} references
                 final Matcher mp = versionPat.matcher(expected);
                 if (mp.matches()) {



Mime
View raw message