@Test public void isValidBuildName_minus_nok() { assertFalse(link.isValidBuildName(NoConfig.INSTANCE, "-1")); assertFalse(link.isValidBuildName(NoConfig.INSTANCE, "-10")); }
@Override public boolean isValidBuildName(NoConfig data, String name) { return StringUtils.isNumeric(name) && Long.parseLong(name, 10) > 0; }
RevisionSvnRevisionLink implements BuildSvnRevisionLink<NoConfig> { @Override public boolean isValidBuildName(NoConfig data, String name) { return StringUtils.isNumeric(name) && Long.parseLong(name, 10) > 0; } }
RevisionSvnRevisionLink implements BuildSvnRevisionLink<NoConfig> { @Override public boolean isValidBuildName(NoConfig data, String name) { return StringUtils.isNumeric(name) && Long.parseLong(name, 10) > 0; } @Autowired  RevisionSvnRevisionLink(StructureService structureService); }
RevisionSvnRevisionLink implements BuildSvnRevisionLink<NoConfig> { @Override public boolean isValidBuildName(NoConfig data, String name) { return StringUtils.isNumeric(name) && Long.parseLong(name, 10) > 0; } @Autowired  RevisionSvnRevisionLink(StructureService structureService); @Override String getId(); @Override String getName(); @Override NoConfig clone(NoConfig data, Function<String, String> replacementFunction); @Override NoConfig parseData(JsonNode node); @Override JsonNode toJson(NoConfig data); @Override Form getForm(); @Override boolean isValidBuildName(NoConfig data, String name); @Override OptionalLong getRevision(NoConfig data, Build build, SVNBranchConfigurationProperty branchConfigurationProperty); @Override String getBuildPath(NoConfig data, Build build, SVNBranchConfigurationProperty branchConfigurationProperty); @Override Optional<Build> getEarliestBuild(NoConfig data, Branch branch, SVNLocation location, SVNLocation firstCopy, SVNBranchConfigurationProperty branchConfigurationProperty); }
RevisionSvnRevisionLink implements BuildSvnRevisionLink<NoConfig> { @Override public boolean isValidBuildName(NoConfig data, String name) { return StringUtils.isNumeric(name) && Long.parseLong(name, 10) > 0; } @Autowired  RevisionSvnRevisionLink(StructureService structureService); @Override String getId(); @Override String getName(); @Override NoConfig clone(NoConfig data, Function<String, String> replacementFunction); @Override NoConfig parseData(JsonNode node); @Override JsonNode toJson(NoConfig data); @Override Form getForm(); @Override boolean isValidBuildName(NoConfig data, String name); @Override OptionalLong getRevision(NoConfig data, Build build, SVNBranchConfigurationProperty branchConfigurationProperty); @Override String getBuildPath(NoConfig data, Build build, SVNBranchConfigurationProperty branchConfigurationProperty); @Override Optional<Build> getEarliestBuild(NoConfig data, Branch branch, SVNLocation location, SVNLocation firstCopy, SVNBranchConfigurationProperty branchConfigurationProperty);  }