/** 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); }
/** 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); }