Package org.plugtree.training.event

Examples of org.plugtree.training.event.CheckInEvent


        //the luggage's location should be FRONT-DESK
        assertEquals(Luggage.Location.FRONT_DESK, luggage.getLocation());

        //2 minutes later, the luggage is checked-in
        clock.advanceTime(2, TimeUnit.MINUTES);
        CheckInEvent checkInEvent = new CheckInEvent(luggage.getCode());
        checkInEventsEP.insert(checkInEvent);
        ksession.fireAllRules();

        //No alerts
        assertEquals(0, alertSystem.getAlertCount());
View Full Code Here


        Luggage luggage = luggageManager.registerNewLuggage();
        LuggageReceptionEvent luggageReceptionEvent = new LuggageReceptionEvent(luggage,flightCode);
        ksession.insert(luggageReceptionEvent);

        //A non existant luggage is trying to be checked-in
        CheckInEvent checkInEvent = new CheckInEvent("NonExistentLuggageCode");
        checkInEventsEP.insert(checkInEvent);

        ksession.fireAllRules();

        assertEquals(1, alertSystem.getAlertCount());
View Full Code Here

TOP

Related Classes of org.plugtree.training.event.CheckInEvent

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.