@Test public void testGetDependenciesList() throws Exception { EntryProperties properties = new EntryProperties(); properties.setDependencies("A:1.2.3.4|B:1.2.3.4"); List<Dependency> result = properties.getDependenciesList(); assertThat(result.toArray(new Dependency[0])).containsOnly(Dependency.parseString("A:1.2.3.4"), Dependency.parseString("B:1.2.3.4")); }
public List<Dependency> getDependenciesList() throws NugetFormatException { ArrayList<Dependency> list = new ArrayList<>(); if (dependencies == null || dependencies.isEmpty()) { return list; } String cleanDependencies = dependencies.replaceAll("", ""); for (String dependencyString : cleanDependencies.split("[\\ |]")) { Dependency dependency = Dependency.parseString(dependencyString); if (dependency != null) { list.add(dependency); } } return list; }
EntryProperties { public List<Dependency> getDependenciesList() throws NugetFormatException { ArrayList<Dependency> list = new ArrayList<>(); if (dependencies == null || dependencies.isEmpty()) { return list; } String cleanDependencies = dependencies.replaceAll("", ""); for (String dependencyString : cleanDependencies.split("[\\ |]")) { Dependency dependency = Dependency.parseString(dependencyString); if (dependency != null) { list.add(dependency); } } return list; } }
EntryProperties { public List<Dependency> getDependenciesList() throws NugetFormatException { ArrayList<Dependency> list = new ArrayList<>(); if (dependencies == null || dependencies.isEmpty()) { return list; } String cleanDependencies = dependencies.replaceAll("", ""); for (String dependencyString : cleanDependencies.split("[\\ |]")) { Dependency dependency = Dependency.parseString(dependencyString); if (dependency != null) { list.add(dependency); } } return list; }  }
EntryProperties { public List<Dependency> getDependenciesList() throws NugetFormatException { ArrayList<Dependency> list = new ArrayList<>(); if (dependencies == null || dependencies.isEmpty()) { return list; } String cleanDependencies = dependencies.replaceAll("", ""); for (String dependencyString : cleanDependencies.split("[\\ |]")) { Dependency dependency = Dependency.parseString(dependencyString); if (dependency != null) { list.add(dependency); } } return list; }  static EntryProperties parse(InputStream inputStream); @XmlAnyElement Element[] getProperties(); void setProperties(Element[] properties); void setNuspec(Nuspec nuspecFile); String getId(); void setId(String id); SemanticVersion getVersion(); void setVersion(SemanticVersion version); String getTitle(); void setTitle(String title); String getIconUrl(); void setIconUrl(String iconUrl); String getLicenseUrl(); void setLicenseUrl(String licenseUrl); String getProjectSourceUrl(); void setProjectSourceUrl(String projectSourceUrl); String getProjectUrl(); void setProjectUrl(String projectUrl); String getReportAbuseUrl(); void setReportAbuseUrl(String reportAbuseUrl); Integer getDownloadCount(); void setDownloadCount(Integer downloadCount); Integer getVersionDownloadCount(); void setVersionDownloadCount(Integer versionDownloadCount); Integer getRatingsCount(); void setRatingsCount(Integer ratingsCount); Integer getVersionRatingsCount(); void setVersionRatingsCount(Integer versionRatingsCount); Double getRating(); void setRating(Double rating); Double getVersionRating(); void setVersionRating(Double versionRating); Boolean getRequireLicenseAcceptance(); void setRequireLicenseAcceptance(Boolean requireLicenseAcceptance); String getDescription(); void setDescription(String description); String getReleaseNotes(); void setReleaseNotes(String releaseNotes); String getLanguage(); void setLanguage(String language); Date getPublished(); void setPublished(Date published); Double getPrice(); void setPrice(Double price); String getDependencies(); void setDependencies(String dependencies); String getPackageHash(); void setPackageHash(String packageHash); Long getPackageSize(); void setPackageSize(Long packageSize); String getExternalPackageUri(); void setExternalPackageUri(String externalPackageUri); String getCategories(); void setCategories(String categories); String getCopyright(); void setCopyright(String copyright); String getPackageType(); void setPackageType(String packageType); void setBugTrackerUrl(String bugTrackerUrl); String getBugTrackerUrl(); void setDocsUrl(String docsUrl); String getDocsUrl(); void setPackageSourceUrl(String packageSourceUrl); String getPackageSourceUrl(); void setMailingListUrl(String mailingListUrl); String getMailingListUrl(); List<String> getTags(); void setTags(List<String> tags); Boolean getIsLatestVersion(); void setIsLatestVersion(Boolean isLatestVersion); String getSummary(); void setSummary(String summary); void setDependenciesList(List<Dependency> dependencies); List<Dependency> getDependenciesList(); }
EntryProperties { public List<Dependency> getDependenciesList() throws NugetFormatException { ArrayList<Dependency> list = new ArrayList<>(); if (dependencies == null || dependencies.isEmpty()) { return list; } String cleanDependencies = dependencies.replaceAll("", ""); for (String dependencyString : cleanDependencies.split("[\\ |]")) { Dependency dependency = Dependency.parseString(dependencyString); if (dependency != null) { list.add(dependency); } } return list; }  static EntryProperties parse(InputStream inputStream); @XmlAnyElement Element[] getProperties(); void setProperties(Element[] properties); void setNuspec(Nuspec nuspecFile); String getId(); void setId(String id); SemanticVersion getVersion(); void setVersion(SemanticVersion version); String getTitle(); void setTitle(String title); String getIconUrl(); void setIconUrl(String iconUrl); String getLicenseUrl(); void setLicenseUrl(String licenseUrl); String getProjectSourceUrl(); void setProjectSourceUrl(String projectSourceUrl); String getProjectUrl(); void setProjectUrl(String projectUrl); String getReportAbuseUrl(); void setReportAbuseUrl(String reportAbuseUrl); Integer getDownloadCount(); void setDownloadCount(Integer downloadCount); Integer getVersionDownloadCount(); void setVersionDownloadCount(Integer versionDownloadCount); Integer getRatingsCount(); void setRatingsCount(Integer ratingsCount); Integer getVersionRatingsCount(); void setVersionRatingsCount(Integer versionRatingsCount); Double getRating(); void setRating(Double rating); Double getVersionRating(); void setVersionRating(Double versionRating); Boolean getRequireLicenseAcceptance(); void setRequireLicenseAcceptance(Boolean requireLicenseAcceptance); String getDescription(); void setDescription(String description); String getReleaseNotes(); void setReleaseNotes(String releaseNotes); String getLanguage(); void setLanguage(String language); Date getPublished(); void setPublished(Date published); Double getPrice(); void setPrice(Double price); String getDependencies(); void setDependencies(String dependencies); String getPackageHash(); void setPackageHash(String packageHash); Long getPackageSize(); void setPackageSize(Long packageSize); String getExternalPackageUri(); void setExternalPackageUri(String externalPackageUri); String getCategories(); void setCategories(String categories); String getCopyright(); void setCopyright(String copyright); String getPackageType(); void setPackageType(String packageType); void setBugTrackerUrl(String bugTrackerUrl); String getBugTrackerUrl(); void setDocsUrl(String docsUrl); String getDocsUrl(); void setPackageSourceUrl(String packageSourceUrl); String getPackageSourceUrl(); void setMailingListUrl(String mailingListUrl); String getMailingListUrl(); List<String> getTags(); void setTags(List<String> tags); Boolean getIsLatestVersion(); void setIsLatestVersion(Boolean isLatestVersion); String getSummary(); void setSummary(String summary); void setDependenciesList(List<Dependency> dependencies); List<Dependency> getDependenciesList();  }