### Question:
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);  }### Answer:
@Test public void isValidBuildName_ok() { assertTrue(link.isValidBuildName(NoConfig.INSTANCE, "1")); assertTrue(link.isValidBuildName(NoConfig.INSTANCE, "100000")); }
@Test public void isValidBuildName_zero_nok() { assertFalse(link.isValidBuildName(NoConfig.INSTANCE, "0")); }
@Test public void isValidBuildName_minus_nok() { assertFalse(link.isValidBuildName(NoConfig.INSTANCE, "-1")); assertFalse(link.isValidBuildName(NoConfig.INSTANCE, "-10")); }
@Test public void isValidBuildName_alpha_nok() { assertFalse(link.isValidBuildName(NoConfig.INSTANCE, "a")); assertFalse(link.isValidBuildName(NoConfig.INSTANCE, "10a")); assertFalse(link.isValidBuildName(NoConfig.INSTANCE, "a10")); }