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.InspectArrivedCargo


                    break;

                case UNLOAD:
                    if( c.handlingLocation.equals( c.destination ) )
                    {
                        new InspectArrivedCargo( cargo, c.handlingEvent ).inspect();
                    }
                    else
                    {
                        new InspectUnloadedCargo( cargo, c.handlingEvent ).inspect();
                    }
View Full Code Here


        // Unload in final destination (with no itinerary!)
        handlingEvent = HANDLING_EVENTS.createHandlingEvent( DAY23, DAY23, trackingId, UNLOAD, STOCKHOLM, V203 );
        try
        {
            new InspectArrivedCargo( cargo, handlingEvent ).inspect();
            fail();
        }
        catch( CargoArrivedException e )
        {
            assertMessage( e, "Cargo 'Arrived_CARGO' has arrived in destination Stockholm (SESTO)" );
View Full Code Here

        // Unload in final destination (with wrong itinerary)
        handlingEvent = HANDLING_EVENTS.createHandlingEvent( DAY23, DAY23, trackingId, UNLOAD, STOCKHOLM, V203 );
        try
        {
            new InspectArrivedCargo( cargo, handlingEvent ).inspect();
            fail();
        }
        catch( CargoArrivedException e )
        {
            assertMessage( e, "Cargo 'Arrived_CARGO' has arrived in destination Stockholm (SESTO)" );
View Full Code Here

        // Unload in final destination (with satisfying itinerary)
        handlingEvent = HANDLING_EVENTS.createHandlingEvent( DAY23, DAY23, trackingId, UNLOAD, STOCKHOLM, V203 );
        try
        {
            new InspectArrivedCargo( cargo, handlingEvent ).inspect();
            fail();
        }
        catch( CargoArrivedException e )
        {
            assertMessage( e, "Cargo 'Arrived_CARGO' has arrived in destination Stockholm (SESTO)" );
View Full Code Here

TOP

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

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.