Class AsnsControllerIntegrationTest

    • Constructor Detail

      • AsnsControllerIntegrationTest

        public AsnsControllerIntegrationTest()
    • Method Detail

      • 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​(java.lang.String warehouseCode,
                                            java.lang.String pointOfServiceName,
                                            java.util.List<AsnEntryWsDTO> asnEntries,
                                            java.lang.String extId,
                                            java.util.Date releaseDate,
                                            java.lang.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​(java.lang.String productCode,
                                                    java.lang.Integer quantity)
        Populates a AsnEntryWsDTO
        Parameters:
        productCode -
        quantity -
        Returns:
        asnEntryWsDTO