Package org.qi4j.sample.dcicargo.sample_b.context.interaction.handling.inspection.event

Examples of org.qi4j.sample.dcicargo.sample_b.context.interaction.handling.inspection.event.InspectClaimedCargo


                case CUSTOMS:
                    new InspectCargoInCustoms( cargo, c.handlingEvent ).inspect();
                    break;

                case CLAIM:
                    new InspectClaimedCargo( cargo, c.handlingEvent ).inspect();
                    break;

                default:
                    // No other handling event types
                }
View Full Code Here


        cargo.delivery().set( delivery( TODAY, IN_PORT, NOT_ROUTED, leg5 ) );

        // Claim in final destination (without itinerary!)
        handlingEvent = HANDLING_EVENTS.createHandlingEvent( DAY1, DAY1, trackingId, CLAIM, STOCKHOLM, noVoyage );

        new InspectClaimedCargo( cargo, handlingEvent ).inspect();

        assertDelivery( CLAIM, STOCKHOLM, DAY1, noVoyage,
                        CLAIMED, notArrived,
                        NOT_ROUTED, directed, unknownETA, unknownLeg,
                        unknownNextHandlingEvent );
View Full Code Here

        cargo.itinerary().set( wrongItinerary );
        cargo.delivery().set( delivery( TODAY, IN_PORT, MISROUTED, leg3 ) );

        // Claim in final destination (with wrong itinerary)
        handlingEvent = HANDLING_EVENTS.createHandlingEvent( DAY20, DAY20, trackingId, CLAIM, MELBOURNE, noVoyage );
        new InspectClaimedCargo( cargo, handlingEvent ).inspect();

        assertDelivery( CLAIM, MELBOURNE, DAY20, noVoyage,
                        CLAIMED, notArrived,
                        MISROUTED, directed, unknownETA, unknownLeg,
                        unknownNextHandlingEvent );
View Full Code Here

        cargo.delivery().set( delivery( TODAY, IN_PORT, ROUTED, leg3 ) );

        // Claim in midpoint before arrival at final destination
        // Should this really be considered misdirected?!
        handlingEvent = HANDLING_EVENTS.createHandlingEvent( DAY9, DAY9, trackingId, CLAIM, DALLAS, noVoyage );
        new InspectClaimedCargo( cargo, handlingEvent ).inspect();

        assertDelivery( CLAIM, DALLAS, DAY9, noVoyage,
                        CLAIMED, notArrived,
                        ROUTED, misdirected, itinerary.eta(), leg3,
                        unknownNextHandlingEvent );
View Full Code Here

        cargo.itinerary().set( itinerary );
        cargo.delivery().set( delivery( TODAY, IN_PORT, ROUTED, leg5 ) );

        // Claim in final destination
        handlingEvent = HANDLING_EVENTS.createHandlingEvent( DAY24, DAY24, trackingId, CLAIM, STOCKHOLM, noVoyage );
        new InspectClaimedCargo( cargo, handlingEvent ).inspect();

        assertDelivery( CLAIM, STOCKHOLM, DAY24, noVoyage,
                        CLAIMED, notArrived,
                        ROUTED, directed, itinerary.eta(), leg5,
                        unknownNextHandlingEvent );
View Full Code Here

TOP

Related Classes of org.qi4j.sample.dcicargo.sample_b.context.interaction.handling.inspection.event.InspectClaimedCargo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.