jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1340198 - /jmeter/trunk/test/src/org/apache/jmeter/junit/JMeterTest.java
Date Fri, 18 May 2012 18:16:38 GMT
Author: sebb
Date: Fri May 18 18:16:38 2012
New Revision: 1340198

URL: http://svn.apache.org/viewvc?rev=1340198&view=rev
Log:
Distinguish null and empty labels

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=1340198&r1=1340197&r2=1340198&view=diff
==============================================================================
--- jmeter/trunk/test/src/org/apache/jmeter/junit/JMeterTest.java (original)
+++ jmeter/trunk/test/src/org/apache/jmeter/junit/JMeterTest.java Fri May 18 18:16:38 2012
@@ -423,7 +423,8 @@ public class JMeterTest extends JMeterTe
         if (!name.endsWith("TestBeanGUI")) {
             try {
                 String label = guiItem.getLabelResource();
-                assertTrue("Label should not be null or empty for "+name,label != null &&
label.length() > 0);
+                assertNotNull("Label should not be null for "+name, label);
+                assertTrue("Label should not be empty for "+name, label.length() > 0);
                 assertFalse("'" + label + "' should be in resource file for " + name, JMeterUtils.getResString(
                         label).startsWith(JMeterUtils.RES_KEY_PFX));
             } catch (UnsupportedOperationException uoe) {



Mime
View raw message