Beispiel #1
0
 /** Test of isNullOrWhiteSpace method, of class Tools. Input: valid string Expected: false */
 @Test
 public void testIsNullOrWhiteSpaceNotEmpty() {
   String value = "XXX";
   Boolean expResult = false;
   Boolean result = Tools.isNullOrWhiteSpace(value);
   assertEquals(expResult, result);
 }
Beispiel #2
0
 /** Test of isNullOrWhiteSpace method, of class Tools. Input: white space Expected: true */
 @Test
 public void testIsNullOrWhiteSpaceInputWhiteSpaces() {
   String value = "   ";
   Boolean expResult = true;
   Boolean result = Tools.isNullOrWhiteSpace(value);
   assertEquals(expResult, result);
 }