app/src/test/java/Script/RealScriptProviderTest.java
// Verify that parent has exactly one child with the specified tag, and its content is as specified.
Verify that parent has exactly one child with the specified tag, and its content is as specified.
Verify that parent has exactly one child with the specified tag and its content is as specified .
void verifyChildContent(Element parent, String tag, String content) {
        NodeList children = parent.getElementsByTagName(tag);
        assertEquals(1, children.getLength());
        Node child = children.item(0);
        assertTrue("expected child to be Element", child instanceof Element);
        Element elt = (Element) child;
        assertEquals(content, elt.getTextContent());
    }
void verifyChildContent ( Element parent , String tag , String content ) { NodeList children = parent . getElementsByTagName ( tag ) ; assertEquals ( 1 , children . getLength ( ) ) ; Node child = children . item ( 0 ) ; assertTrue ( "expected child to be Element" , child instanceof Element ) ; Element elt = ( Element ) child ; assertEquals ( content , elt . getTextContent ( ) ) ; }
Verify that parent has exactly one child with the specified tag, and its content is as specified.
Verify that parent has exactly one child with the specified tag and its content is as specified .