Class AvoidHardCodedTestCases

java.lang.Object
analyzer.Comment
analyzer.comments.AvoidHardCodedTestCases

public class AvoidHardCodedTestCases extends Comment
This comment instructs students not to hard-code values used in the exercise tests.
See Also:
  • Constructor Details

    • AvoidHardCodedTestCases

      public AvoidHardCodedTestCases()
  • Method Details

    • getKey

      public String getKey()
      Description copied from class: Comment
      The comment key is a String that uniquely identifies the comment.

      Comment keys use the format "java.<scope>.<name>". The <scope> can be either general for general comments, or the slug of the exercise for exercise-specific comments. The <name> specifies the name of the comment.

      The combination of <scope> and <name> must be unique, and defines the location of the Markdown template in the exercism/website-copy repository.

      For example, the comment key "java.hello-world.foo_bar" would translate to the Markdown file at analyzer-comments/java/hello-world/foo_bar.md.

      Specified by:
      getKey in class Comment
      Returns:
      The unique comment key.
    • getType

      public Comment.Type getType()
      Description copied from class: Comment
      Overrides:
      getType in class Comment
      Returns:
      The type of the comment.
      See Also: