Class WorkItemTrackingRequestBuilderTest

java.lang.Object
org.azd.unittests.WorkItemTrackingRequestBuilderTest

public class WorkItemTrackingRequestBuilderTest extends Object
  • Constructor Details

    • WorkItemTrackingRequestBuilderTest

      public WorkItemTrackingRequestBuilderTest()
  • Method Details

    • init

      public void init() throws AzDException
      Throws:
      AzDException
    • shouldGetWorkItem

      public void shouldGetWorkItem() throws AzDException
      Throws:
      AzDException
    • shouldGetWorkItemWithOptionalParameters

      public void shouldGetWorkItemWithOptionalParameters() throws AzDException
      Throws:
      AzDException
    • shouldCreateAWorkItem

      public void shouldCreateAWorkItem() throws AzDException
      Throws:
      AzDException
    • shouldDeleteAWorkItem

      public void shouldDeleteAWorkItem() throws AzDException
      Throws:
      AzDException
    • shouldGetWorkItems

      public void shouldGetWorkItems() throws AzDException
      Throws:
      AzDException
    • shouldGetWorkItemRevisions

      public void shouldGetWorkItemRevisions() throws AzDException
      Throws:
      AzDException
    • shouldGetWorkItemRevision

      public void shouldGetWorkItemRevision() throws AzDException
      Throws:
      AzDException
    • shouldQueryWorkItems

      public void shouldQueryWorkItems() throws AzDException
      Throws:
      AzDException
    • shouldQueryWorkItemsAndGetExactlyOneResult

      public void shouldQueryWorkItemsAndGetExactlyOneResult() throws AzDException
      Throws:
      AzDException
    • shouldRemoveWorkItemFromRecycleBin

      public void shouldRemoveWorkItemFromRecycleBin() throws AzDException
      Throws:
      AzDException
    • shouldGetWorkItemFromRecycleBin

      public void shouldGetWorkItemFromRecycleBin() throws AzDException
      Throws:
      AzDException
    • shouldGetDeletedWorkItemFromRecycleBin

      public void shouldGetDeletedWorkItemFromRecycleBin() throws AzDException
      Throws:
      AzDException
    • shouldGetDeletedWorkItemsFromRecycleBin

      public void shouldGetDeletedWorkItemsFromRecycleBin() throws AzDException
      Throws:
      AzDException
    • shouldRestoreWorkItemFromRecycleBin

      public void shouldRestoreWorkItemFromRecycleBin() throws AzDException
      Throws:
      AzDException
    • shouldUpdateAWorkItem

      public void shouldUpdateAWorkItem() throws AzDException
      Throws:
      AzDException
    • shouldAddHyperlink

      public void shouldAddHyperlink() throws AzDException
      Throws:
      AzDException
    • shouldRemoveHyperlink

      public void shouldRemoveHyperlink() throws AzDException
      Throws:
      AzDException
    • shouldGetWorkItemTypes

      public void shouldGetWorkItemTypes() throws AzDException
      Throws:
      AzDException
    • shouldGetAWorkItemType

      public void shouldGetAWorkItemType() throws AzDException
      Throws:
      AzDException
    • shouldGetWorkItemTypeCategories

      public void shouldGetWorkItemTypeCategories() throws AzDException
      Throws:
      AzDException
    • shouldGetAWorkItemTypeCategories

      public void shouldGetAWorkItemTypeCategories() throws AzDException
      Throws:
      AzDException
    • shouldCreateWorkItemAttachment

      public void shouldCreateWorkItemAttachment() throws AzDException
      Throws:
      AzDException
    • shouldGetWorkItemAttachmentAsStreamToAFile

      public void shouldGetWorkItemAttachmentAsStreamToAFile() throws AzDException
      Throws:
      AzDException
    • shouldGetWorkItemAttachmentAsZipFile

      public void shouldGetWorkItemAttachmentAsZipFile() throws AzDException
      Throws:
      AzDException
    • shouldAddAnAttachmentToAWorkItem

      public void shouldAddAnAttachmentToAWorkItem()
    • shouldRemoveAnAttachmentFromAWorkItem

      public void shouldRemoveAnAttachmentFromAWorkItem()
    • shouldGetWorkItemActivities

      public void shouldGetWorkItemActivities() throws AzDException
      Throws:
      AzDException
    • shouldGetWorkItemFields

      public void shouldGetWorkItemFields() throws AzDException
      Throws:
      AzDException
    • shouldGetWorkItemFieldsWithFieldsExpanded

      public void shouldGetWorkItemFieldsWithFieldsExpanded() throws AzDException
      Throws:
      AzDException
    • shouldGetWorkItemField

      public void shouldGetWorkItemField() throws AzDException
      Throws:
      AzDException
    • shouldCreateWorkItemField

      public void shouldCreateWorkItemField() throws AzDException
      Throws:
      AzDException
    • shouldDeleteWorkItemField

      public void shouldDeleteWorkItemField() throws AzDException
      Throws:
      AzDException
    • shouldUpdateAWorkItemField

      public void shouldUpdateAWorkItemField() throws AzDException
      Throws:
      AzDException
    • shouldCreateAQueryFolder

      public void shouldCreateAQueryFolder() throws AzDException
      Throws:
      AzDException
    • shouldCreateAQuery

      public void shouldCreateAQuery() throws AzDException
      Throws:
      AzDException
    • shouldGetAllQueries

      public void shouldGetAllQueries() throws AzDException
      Throws:
      AzDException
    • shouldGetAQueryObject

      public void shouldGetAQueryObject() throws AzDException
      Throws:
      AzDException
    • shouldDeleteAQuery

      public void shouldDeleteAQuery() throws AzDException
      Throws:
      AzDException
    • shouldGetQueriesInBatch

      public void shouldGetQueriesInBatch() throws AzDException
      Throws:
      AzDException
    • shouldSearchQueriesBasedOnFilter

      public void shouldSearchQueriesBasedOnFilter() throws AzDException
      Throws:
      AzDException
    • shouldAddCommentToGivenWorkItem

      public void shouldAddCommentToGivenWorkItem() throws AzDException
      Throws:
      AzDException
    • shouldAddMarkdownCommentToGivenWorkItem

      public void shouldAddMarkdownCommentToGivenWorkItem() throws AzDException
      Throws:
      AzDException
    • shouldDeleteCommentFromGivenWorkItem

      public void shouldDeleteCommentFromGivenWorkItem() throws AzDException
      Throws:
      AzDException
    • shouldListOfCommentsForGivenWorkItem

      public void shouldListOfCommentsForGivenWorkItem() throws AzDException
      Throws:
      AzDException
    • shouldListOfPaginatedCommentsForGivenWorkItem

      public void shouldListOfPaginatedCommentsForGivenWorkItem() throws AzDException
      Throws:
      AzDException
    • shouldGetACommentForGivenWorkItem

      public void shouldGetACommentForGivenWorkItem() throws AzDException
      Throws:
      AzDException
    • shouldGetCommentsBatchForGivenWorkItem

      public void shouldGetCommentsBatchForGivenWorkItem() throws AzDException
      Throws:
      AzDException
    • shouldUpdateACommentForGivenWorkItem

      public void shouldUpdateACommentForGivenWorkItem() throws AzDException
      Throws:
      AzDException
    • shouldUpdateAFormattedCommentForGivenWorkItem

      public void shouldUpdateAFormattedCommentForGivenWorkItem() throws AzDException
      Throws:
      AzDException
    • shouldRetainUnauthorizedStatusInResponseHandlerWhenProjectIsAbsent

      public void shouldRetainUnauthorizedStatusInResponseHandlerWhenProjectIsAbsent()
      Regression test for issue #107. When a 401 is returned (e.g. calling workItemTypes().list() without a project), ResponseHandler.getResponse() must still reflect the 401 status after the exception is thrown. Previously, ErrorResponseHandler called context.request().getRequestUri() to build the error message, which triggered a fresh LocationService OPTIONS call that overwrote ResponseHandler.apiResponse with 200 OK before the exception reached the caller.