@Test public void testWriteAttributes() { final HierarchicalStreamWriter writer = mock(HierarchicalStreamWriter.class); final ExternalLink externalLink = new ExternalLink(); externalLink.setUrl(TEST_URL); externalLink.setName(TEST_NAME); converter.writeAttributes(writer, externalLink); verify(writer).addAttribute(URL, TEST_URL); verify(writer).addAttribute(NAME, TEST_NAME); }
@Override protected void writeAttributes(final HierarchicalStreamWriter writer, final Object parent) { superWriteAttributes(writer, parent); final ExternalLink externalLink = (ExternalLink) parent; writer.addAttribute(URL, externalLink.getUrl()); writer.addAttribute(NAME, externalLink.getName()); }
ExternalLinksConverter extends DMNModelInstrumentedBaseConverter { @Override protected void writeAttributes(final HierarchicalStreamWriter writer, final Object parent) { superWriteAttributes(writer, parent); final ExternalLink externalLink = (ExternalLink) parent; writer.addAttribute(URL, externalLink.getUrl()); writer.addAttribute(NAME, externalLink.getName()); } }
ExternalLinksConverter extends DMNModelInstrumentedBaseConverter { @Override protected void writeAttributes(final HierarchicalStreamWriter writer, final Object parent) { superWriteAttributes(writer, parent); final ExternalLink externalLink = (ExternalLink) parent; writer.addAttribute(URL, externalLink.getUrl()); writer.addAttribute(NAME, externalLink.getName()); } ExternalLinksConverter(final XStream xstream); }
ExternalLinksConverter extends DMNModelInstrumentedBaseConverter { @Override protected void writeAttributes(final HierarchicalStreamWriter writer, final Object parent) { superWriteAttributes(writer, parent); final ExternalLink externalLink = (ExternalLink) parent; writer.addAttribute(URL, externalLink.getUrl()); writer.addAttribute(NAME, externalLink.getName()); } ExternalLinksConverter(final XStream xstream); @Override boolean canConvert(final Class aClass); }
ExternalLinksConverter extends DMNModelInstrumentedBaseConverter { @Override protected void writeAttributes(final HierarchicalStreamWriter writer, final Object parent) { superWriteAttributes(writer, parent); final ExternalLink externalLink = (ExternalLink) parent; writer.addAttribute(URL, externalLink.getUrl()); writer.addAttribute(NAME, externalLink.getName()); } ExternalLinksConverter(final XStream xstream); @Override boolean canConvert(final Class aClass);  }