@Test public void testParseNodeShouldReturnTemplateFormatter() { getChildNodes(); given(element.getNodeType()).willReturn(Node.ELEMENT_NODE); given(element.getTagName()).willReturn(TEMPLATE_FORMATTER_TAG); given(formatterInitializer.getExternalClassObject("class")).willReturn(templateFormatter); mockTemplateFormatterAttributes(); Set<ResponseFormatterDescriptor> actual = underTest.parseNode(node, document); assertEquals(((ResponseFormatterDescriptor) actual.toArray()[0]).getResponseFormatter(), templateFormatter); }
@Override public Set<ResponseFormatterDescriptor> parseNode(final Node node, final Document document) { int depth = 0; return parse(node, document, depth); }
TemplateDescriptorParser implements NodeParser<Set<ResponseFormatterDescriptor>> { @Override public Set<ResponseFormatterDescriptor> parseNode(final Node node, final Document document) { int depth = 0; return parse(node, document, depth); } }
TemplateDescriptorParser implements NodeParser<Set<ResponseFormatterDescriptor>> { @Override public Set<ResponseFormatterDescriptor> parseNode(final Node node, final Document document) { int depth = 0; return parse(node, document, depth); }  }
TemplateDescriptorParser implements NodeParser<Set<ResponseFormatterDescriptor>> { @Override public Set<ResponseFormatterDescriptor> parseNode(final Node node, final Document document) { int depth = 0; return parse(node, document, depth); }  @Override Set<ResponseFormatterDescriptor> parseNode(final Node node, final Document document); }
TemplateDescriptorParser implements NodeParser<Set<ResponseFormatterDescriptor>> { @Override public Set<ResponseFormatterDescriptor> parseNode(final Node node, final Document document) { int depth = 0; return parse(node, document, depth); }  @Override Set<ResponseFormatterDescriptor> parseNode(final Node node, final Document document);  }