Examples of RegisterHandlingEvent


Examples of org.qi4j.sample.dcicargo.sample_b.context.interaction.handling.registration.RegisterHandlingEvent

        tempUow.complete();

        // Claimed 2nd time
        parsedEventData = parsedHandlingEventData( DAY2, DAY2, "ABC", CLAIM, "CNHKG", null );
        thrown.expect( DuplicateEventException.class, "Cargo can't be claimed more than once" );
        new RegisterHandlingEvent( parsedEventData ).getEvent();
    }
View Full Code Here

Examples of org.qi4j.sample.dcicargo.sample_b.context.interaction.handling.registration.RegisterHandlingEvent

        deviation_4a_DuplicateEvent_Claim();

        // Try loading (saved claim event in previous test will prevent this)
        parsedEventData = parsedHandlingEventData( DAY2, DAY2, "ABC", LOAD, "CNHKG", "V201" );
        thrown.expect( AlreadyClaimedException.class, "LOAD handling event can't be registered after cargo has been claimed" );
        new RegisterHandlingEvent( parsedEventData ).getEvent();
    }
View Full Code Here

Examples of org.qi4j.sample.dcicargo.sample_b.context.interaction.handling.registration.RegisterHandlingEvent

                        NOT_RECEIVED, notArrived,
                        ROUTED, directed, itinerary.eta(), leg1,
                        RECEIVE, HONGKONG, DAY1, noVoyage );

        parsedEventData = parsedHandlingEventData( DAY1, DAY1, "ABC", RECEIVE, "CNHKG", null );
        handlingEvent = new RegisterHandlingEvent( parsedEventData ).getEvent();

        cargo.delivery().set( delivery( handlingEvent, IN_PORT, notArrived,
                                        ROUTED, directed, itinerary.eta(), leg1,
                                        nextHandlingEvent( LOAD, HONGKONG, DAY1, V201 ) ) );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.