@Test(groups="Integration") public void testCatalogSerializeAndLookup() { CatalogDto root = buildExampleCatalog(); CatalogXmlSerializer serializer = new CatalogXmlSerializer(); String xml = serializer.toString(root); log.info("Example catalog serialized as:\n"+xml); CatalogDto root2 = (CatalogDto) serializer.fromString(xml); checkCatalogHealthy(root2); }
@Override public String toString() { return Objects.toStringHelper(this) .omitNullValues() .add("name", name) .add("id", id) .add("contentsDescription", contentsDescription) .toString(); }
CatalogDto { @Override public String toString() { return Objects.toStringHelper(this) .omitNullValues() .add("name", name) .add("id", id) .add("contentsDescription", contentsDescription) .toString(); } }
CatalogDto { @Override public String toString() { return Objects.toStringHelper(this) .omitNullValues() .add("name", name) .add("id", id) .add("contentsDescription", contentsDescription) .toString(); }  }
CatalogDto { @Override public String toString() { return Objects.toStringHelper(this) .omitNullValues() .add("name", name) .add("id", id) .add("contentsDescription", contentsDescription) .toString(); }  static CatalogDto newDefaultLocalScanningDto(CatalogClasspathDo.CatalogScanningModes scanMode); @Deprecated static CatalogDto newDtoFromUrl(String url); @Deprecated static CatalogDto newDtoFromXmlUrl(String url); @Deprecated static CatalogDto newDtoFromXmlContents(String xmlContents, String originDescription); static CatalogDto newNamedInstance(String name, String description, String optionalContentsDescription); static CatalogDto newEmptyInstance(String optionalContentsDescription); static CatalogDto newLinkedInstance(String url); @Deprecated static CatalogDto newDtoFromCatalogItems(Collection<CatalogItem<?, ?>> entries); @SuppressWarnings({ "unchecked", "rawtypes" }) static CatalogDto newDtoFromCatalogItems(Collection<CatalogItem<?, ?>> entries, String description); @Override String toString(); }
CatalogDto { @Override public String toString() { return Objects.toStringHelper(this) .omitNullValues() .add("name", name) .add("id", id) .add("contentsDescription", contentsDescription) .toString(); }  static CatalogDto newDefaultLocalScanningDto(CatalogClasspathDo.CatalogScanningModes scanMode); @Deprecated static CatalogDto newDtoFromUrl(String url); @Deprecated static CatalogDto newDtoFromXmlUrl(String url); @Deprecated static CatalogDto newDtoFromXmlContents(String xmlContents, String originDescription); static CatalogDto newNamedInstance(String name, String description, String optionalContentsDescription); static CatalogDto newEmptyInstance(String optionalContentsDescription); static CatalogDto newLinkedInstance(String url); @Deprecated static CatalogDto newDtoFromCatalogItems(Collection<CatalogItem<?, ?>> entries); @SuppressWarnings({ "unchecked", "rawtypes" }) static CatalogDto newDtoFromCatalogItems(Collection<CatalogItem<?, ?>> entries, String description); @Override String toString();  }