@Test(dataProvider = "removeVersionPrefixesProvider") public void testRemoveVersionPrefixes(String version, String expectedVersion) { NpmPackageInfo npmPackageInfo = new NpmPackageInfo("", version, ""); npmPackageInfo.removeVersionPrefixes(); assertEquals(npmPackageInfo.getVersion(), expectedVersion); }
void removeVersionPrefixes() { version = StringUtils.removeStart(version, "="); version = StringUtils.removeStart(version, "v"); }
NpmPackageInfo implements Serializable, ProducerConsumerItem { void removeVersionPrefixes() { version = StringUtils.removeStart(version, "="); version = StringUtils.removeStart(version, "v"); } }
NpmPackageInfo implements Serializable, ProducerConsumerItem { void removeVersionPrefixes() { version = StringUtils.removeStart(version, "="); version = StringUtils.removeStart(version, "v"); } @SuppressWarnings("unused")  NpmPackageInfo();  NpmPackageInfo(String name, String version, String scope); }
NpmPackageInfo implements Serializable, ProducerConsumerItem { void removeVersionPrefixes() { version = StringUtils.removeStart(version, "="); version = StringUtils.removeStart(version, "v"); } @SuppressWarnings("unused")  NpmPackageInfo();  NpmPackageInfo(String name, String version, String scope); String getName(); void setName(String name); String getVersion(); void setVersion(String version); String getScope(); void setScope(String scope); void readPackageInfo(InputStream inputStream); String getModuleId(); String getExpectedPackedFileName(); String getDeployPath(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); }
NpmPackageInfo implements Serializable, ProducerConsumerItem { void removeVersionPrefixes() { version = StringUtils.removeStart(version, "="); version = StringUtils.removeStart(version, "v"); } @SuppressWarnings("unused")  NpmPackageInfo();  NpmPackageInfo(String name, String version, String scope); String getName(); void setName(String name); String getVersion(); void setVersion(String version); String getScope(); void setScope(String scope); void readPackageInfo(InputStream inputStream); String getModuleId(); String getExpectedPackedFileName(); String getDeployPath(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }