Class VersionPropertyValidator

java.lang.Object
com.atlassian.platform.pomcheck.VersionPropertyValidator

public class VersionPropertyValidator extends Object
Checks the version-property conventions on the block between the BEGIN.DEPENDENCY.VERSIONS and END.DEPENDENCY.VERSIONS marker comments: entries are sorted alphabetically, and a comment separates every pair of entries.
  • Constructor Details

  • Method Details

    • validateProperties

      public List<String> validateProperties()
      Returns:
      descriptions of the problems found; empty when the block is well formed.
    • getVersionPropertyBlockCount

      public int getVersionPropertyBlockCount()
      The number of version blocks found, so a caller that knows the POM under test is supposed to have one can assert that the check is actually checking something.