com.atlassian.jira.functest.framework.assertions
Class LabelAssertionsImpl

java.lang.Object
  extended by com.atlassian.jira.functest.framework.AbstractFuncTestUtil
      extended by com.atlassian.jira.functest.framework.assertions.LabelAssertionsImpl
All Implemented Interfaces:
LabelAssertions, com.atlassian.jira.testkit.client.log.FuncTestLogger

public class LabelAssertionsImpl
extends AbstractFuncTestUtil
implements LabelAssertions

Implementation for Label Assertions

Since:
v4.2

Field Summary
 
Fields inherited from class com.atlassian.jira.functest.framework.AbstractFuncTestUtil
environmentData, FS, locators, logger, logIndentLevel, tester
 
Constructor Summary
LabelAssertionsImpl(net.sourceforge.jwebunit.WebTester tester, JIRAEnvironmentData environmentData)
           
 
Method Summary
 void assertLabels(String issueId, String fieldId, Labels expectedLabels)
          Asserts that the given labels match the labels in the given context
 void assertLabelsContain(String issueId, String fieldId, Labels expectedLabels)
          Asserts that the given labels are contained in the labels in the given context
 void assertLabelsDontExist(String issueId, String fieldId)
          Asserts that labels don't exist for the given context.
 void assertLabelsEmpty(Labels labels)
           
 void assertLabelsExist(String issueId, String fieldId)
          Asserts that labels exist for the given context.
 void assertSystemLabels(String issueId, Labels expectedLabels)
          Asserts that the given labels match the labels in the given context
 
Methods inherited from class com.atlassian.jira.functest.framework.AbstractFuncTestUtil
childLogIndentLevel, getAssertions, getEnvironmentData, getFuncTestHelperFactory, getLogger, log, log, navigation, submitAtPage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LabelAssertionsImpl

public LabelAssertionsImpl(net.sourceforge.jwebunit.WebTester tester,
                           JIRAEnvironmentData environmentData)
Method Detail

assertLabelsExist

public void assertLabelsExist(String issueId,
                              String fieldId)
Description copied from interface: LabelAssertions
Asserts that labels exist for the given context.

Specified by:
assertLabelsExist in interface LabelAssertions
Parameters:
issueId - The id of the issue
fieldId - The id of the field. Use 'labels' for system field

assertLabelsDontExist

public void assertLabelsDontExist(String issueId,
                                  String fieldId)
Description copied from interface: LabelAssertions
Asserts that labels don't exist for the given context.

Specified by:
assertLabelsDontExist in interface LabelAssertions
Parameters:
issueId - The id of the issue
fieldId - The id of the field. Use 'labels' for system field

assertLabelsEmpty

public void assertLabelsEmpty(Labels labels)

assertLabels

public void assertLabels(String issueId,
                         String fieldId,
                         Labels expectedLabels)
Description copied from interface: LabelAssertions
Asserts that the given labels match the labels in the given context

Specified by:
assertLabels in interface LabelAssertions
Parameters:
issueId - The id of the issue
fieldId - The id of the field. Use 'labels' for system field
expectedLabels - The expected labels

assertSystemLabels

public void assertSystemLabels(String issueId,
                               Labels expectedLabels)
Description copied from interface: LabelAssertions
Asserts that the given labels match the labels in the given context

Specified by:
assertSystemLabels in interface LabelAssertions
Parameters:
issueId - The id of the issue
expectedLabels - The expected labels

assertLabelsContain

public void assertLabelsContain(String issueId,
                                String fieldId,
                                Labels expectedLabels)
Description copied from interface: LabelAssertions
Asserts that the given labels are contained in the labels in the given context

Specified by:
assertLabelsContain in interface LabelAssertions
Parameters:
issueId - The id of the issue
fieldId - The id of the field. Use 'labels' for system field
expectedLabels - The expected labels


Copyright © 2002-2013 Atlassian. All Rights Reserved.