Class AnnotationBasedTagProvider

java.lang.Object
net.thucydides.model.statistics.service.AnnotationBasedTagProvider
All Implemented Interfaces:
CoreTagProvider, TagProvider

public class AnnotationBasedTagProvider extends Object implements TagProvider, CoreTagProvider
Returns test tags based on the @WithTag, @WithTags and @WithTagValuesOf. Since there is no implicit structure in tags declared this way, capabilities need to be distinguished using a special 'capability' tag.
  • Constructor Details

    • AnnotationBasedTagProvider

      public AnnotationBasedTagProvider()
  • Method Details

    • getTagsFor

      public Set<TestTag> getTagsFor(TestOutcome testOutcome)
      Description copied from interface: TagProvider
      Returns the tags associated with a given test outcome.
      Specified by:
      getTagsFor in interface TagProvider
      Parameters:
      testOutcome - the outcome for a specific test
      Returns:
      the tags associated with a given test outcome.