jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1380315 - /jmeter/trunk/test/src/org/apache/jorphan/util/TestJorphanUtils.java
Date Mon, 03 Sep 2012 19:36:28 GMT
Author: pmouawad
Date: Mon Sep  3 19:36:27 2012
New Revision: 1380315

URL: http://svn.apache.org/viewvc?rev=1380315&view=rev
Log:
Add test case for new method

Modified:
    jmeter/trunk/test/src/org/apache/jorphan/util/TestJorphanUtils.java

Modified: jmeter/trunk/test/src/org/apache/jorphan/util/TestJorphanUtils.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/test/src/org/apache/jorphan/util/TestJorphanUtils.java?rev=1380315&r1=1380314&r2=1380315&view=diff
==============================================================================
--- jmeter/trunk/test/src/org/apache/jorphan/util/TestJorphanUtils.java (original)
+++ jmeter/trunk/test/src/org/apache/jorphan/util/TestJorphanUtils.java Mon Sep  3 19:36:27
2012
@@ -314,4 +314,11 @@ public class TestJorphanUtils extends Te
             assertEquals("values must be the same for index: "+i,expected[i],actual[i]);
         }
     }
+    
+    public void testIsBlank() {
+        assertTrue(JOrphanUtils.isBlank(""));
+        assertTrue(JOrphanUtils.isBlank(null));
+        assertTrue(JOrphanUtils.isBlank("    "));
+        assertFalse(JOrphanUtils.isBlank(" zdazd dzd "));
+    }
 }



Mime
View raw message