Interface LabelAssertions

All Known Implementing Classes:
LabelAssertionsImpl

public interface LabelAssertions
Used to make assertions about labels.
Since:
v4.2
  • Method Details

    • assertLabelsExist

      void assertLabelsExist(String issueId, String fieldId)
      Asserts that labels exist for the given context.
      Parameters:
      issueId - The id of the issue
      fieldId - The id of the field. Use 'labels' for system field
    • assertLabelsDontExist

      void assertLabelsDontExist(String issueId, String fieldId)
      Asserts that labels don't exist for the given context.
      Parameters:
      issueId - The id of the issue
      fieldId - The id of the field. Use 'labels' for system field
    • assertLabels

      void assertLabels(String issueId, String fieldId, Labels expectedLabels)
      Asserts that the given labels match the labels in the given context
      Parameters:
      issueId - The id of the issue
      fieldId - The id of the field. Use 'labels' for system field
      expectedLabels - The expected labels
    • assertSystemLabels

      void assertSystemLabels(String issueId, Labels expectedLabels)
      Asserts that the given labels match the labels in the given context
      Parameters:
      issueId - The id of the issue
      expectedLabels - The expected labels
    • assertLabelsContain

      void assertLabelsContain(String issueId, String fieldId, Labels expectedLabels)
      Asserts that the given labels are contained in the labels in the given context
      Parameters:
      issueId - The id of the issue
      fieldId - The id of the field. Use 'labels' for system field
      expectedLabels - The expected labels