Class AsnsControllerIntegrationTest

All Implemented Interfaces:
JaloSessionHolder

@IntegrationTest public class AsnsControllerIntegrationTest extends BaseWarehousingWebservicesIntegrationTest
Integration test for testing WarehousingAsnsController
  • Constructor Details

    • AsnsControllerIntegrationTest

      public AsnsControllerIntegrationTest()
  • Method Details

    • setup

      public void setup()
      Overrides:
      setup in class BaseWarehousingWebservicesIntegrationTest
    • prepareTestData

      public void prepareTestData()
      Prepares data required for the test
    • testPostAsnEmptyWarehouseCode

      public void testPostAsnEmptyWarehouseCode()
      Tests the controller behavior when obtaining REST call without WarehouseCode specified
    • testPostAsnEmptyPosName

      public void testPostAsnEmptyPosName()
      Tests the controller behavior when obtaining REST call without PointOfService name specified
    • testPostAsnEmptyExternalId

      public void testPostAsnEmptyExternalId()
      Tests the controller behavior when obtaining REST call without ExternalId specified
    • testPostAsnEmptyReleaseDate

      public void testPostAsnEmptyReleaseDate()
      Tests the controller behavior when obtaining REST call without releaseDate specified
    • testInternalIdGeneration

      public void testInternalIdGeneration()
      Tests the InternalId generation for imported Asn
    • testConfirmAsnReceipt

      public void testConfirmAsnReceipt()
      Tests the cancellation of Asn
    • createAsnRequest

      protected AsnWsDTO createAsnRequest(String warehouseCode, String pointOfServiceName, List<AsnEntryWsDTO> asnEntries, String extId, Date releaseDate, String comment)
      Populates a AsnWsDTO for a POST call, to add an ASN in the system
      Parameters:
      warehouseCode -
      pointOfServiceName -
      asnEntries -
      extId -
      releaseDate -
      comment -
      Returns:
      asnWsDTO
    • createAsnEntryWsDTO

      protected AsnEntryWsDTO createAsnEntryWsDTO(String productCode, Integer quantity)
      Populates a AsnEntryWsDTO
      Parameters:
      productCode -
      quantity -
      Returns:
      asnEntryWsDTO