Code example for Text

Methods: getWholeText

0
                text.isElementContentWhitespace());
    } 
 
    public void testGetWholeTextFirst() { 
        assertEquals("Belgian waffles & strawberries (< 5g of fat)",
                descriptionText1.getWholeText());
    } 
 
    public void testGetWholeTextMiddle() { 
        assertEquals("This implementation doesn't include preceding nodes in getWholeText()",
                "Belgian waffles & strawberries (< 5g of fat)", descriptionText2.getWholeText());
    } 
 
    public void testGetWholeTextLast() { 
        assertEquals("This implementation doesn't include preceding nodes in getWholeText()",
                "Belgian waffles & strawberries (< 5g of fat)", descriptionText3.getWholeText());
    } 
 
    public void testGetWholeTextOnly() { 
        assertEquals("60%", vitamincText.getWholeText());
    }