Search in sources :

Example 16 with Element

use of com.google.gwt.xml.client.Element in project gwt-test-utils by gwt-test-utils.

the class XMLElementTest method emptyElementToString.

@Test
public void emptyElementToString() {
    // Given
    Document document = XMLParser.createDocument();
    Element e = document.createElement("ThisIsATest");
    // When
    String toString = e.toString();
    // Then
    assertThat(toString).isEqualTo("<ThisIsATest/>");
}
Also used : Element(com.google.gwt.xml.client.Element) Document(com.google.gwt.xml.client.Document) GwtTestTest(com.googlecode.gwt.test.GwtTestTest) Test(org.junit.Test)

Aggregations

Element (com.google.gwt.xml.client.Element)16 NodeList (com.google.gwt.xml.client.NodeList)9 Document (com.google.gwt.xml.client.Document)8 Node (com.google.gwt.xml.client.Node)6 ArrayList (java.util.ArrayList)5 Text (com.google.gwt.xml.client.Text)4 RequestBuilder (com.google.gwt.http.client.RequestBuilder)3 GwtTestTest (com.googlecode.gwt.test.GwtTestTest)3 Test (org.junit.Test)3 RequestException (com.google.gwt.http.client.RequestException)2 Request (com.google.gwt.http.client.Request)1 RequestCallback (com.google.gwt.http.client.RequestCallback)1 Response (com.google.gwt.http.client.Response)1 FlexTable (com.google.gwt.user.client.ui.FlexTable)1 HTML (com.google.gwt.user.client.ui.HTML)1 Label (com.google.gwt.user.client.ui.Label)1 DatabaseConnection (org.pentaho.database.model.DatabaseConnection)1 IDatabaseConnection (org.pentaho.database.model.IDatabaseConnection)1 MessageDialogBox (org.pentaho.gwt.widgets.client.dialogs.MessageDialogBox)1 PromptDialogBox (org.pentaho.gwt.widgets.client.dialogs.PromptDialogBox)1