@Test public void testCreateProcessingInstruction() { ProcessingInstruction pi = mock(ProcessingInstruction.class); when(document.createProcessingInstruction(eq("target"), eq("data"))).thenReturn(pi); ProcessingInstruction result = tested.createProcessingInstruction("target", "data"); assertEquals(pi, result); verify(document, times(1)).createProcessingInstruction(eq("target"), eq("data")); }
public ProcessingInstruction createProcessingInstruction(final String target, final String data) { return document.createProcessingInstruction(target, data); }
GwtDOMHandler { public ProcessingInstruction createProcessingInstruction(final String target, final String data) { return document.createProcessingInstruction(target, data); } }
GwtDOMHandler { public ProcessingInstruction createProcessingInstruction(final String target, final String data) { return document.createProcessingInstruction(target, data); } GwtDOMHandler(final Document document); }
GwtDOMHandler { public ProcessingInstruction createProcessingInstruction(final String target, final String data) { return document.createProcessingInstruction(target, data); } GwtDOMHandler(final Document document); Element createElement(final String tagName); Text createTextNode(final String data); Comment createComment(final String data); CDATASection createCDATASection(final String data); ProcessingInstruction createProcessingInstruction(final String target,
                                                             final String data); Element createElementNS(final String namespaceURI,
                                   final String qualifiedName); Attr createAttributeNS(final String namespaceURI,
                                  final String qualifiedName); Attr setAttributeNS(final Node node,
                               final String namespaceURI,
                               final String qualifiedName,
                               final String value); Attr setAttributeNodeNS(final Node element,
                                   final Attr attr); static Node getNamedItem(NamedNodeMap map,
                                    String uri,
                                    String localName); Document getDocument(); }
GwtDOMHandler { public ProcessingInstruction createProcessingInstruction(final String target, final String data) { return document.createProcessingInstruction(target, data); } GwtDOMHandler(final Document document); Element createElement(final String tagName); Text createTextNode(final String data); Comment createComment(final String data); CDATASection createCDATASection(final String data); ProcessingInstruction createProcessingInstruction(final String target,
                                                             final String data); Element createElementNS(final String namespaceURI,
                                   final String qualifiedName); Attr createAttributeNS(final String namespaceURI,
                                  final String qualifiedName); Attr setAttributeNS(final Node node,
                               final String namespaceURI,
                               final String qualifiedName,
                               final String value); Attr setAttributeNodeNS(final Node element,
                                   final Attr attr); static Node getNamedItem(NamedNodeMap map,
                                    String uri,
                                    String localName); Document getDocument();  }