Package example.atm.scenarios

Source Code of example.atm.scenarios.InLotsOfTrouble

package example.atm.scenarios;

import org.jbehave.core.story.domain.MultiStepScenario;

import example.atm.events.UserRequestsCash;
import example.atm.givens.AccountIsOverOverdraftLimit;
import example.atm.outcomes.ATMShouldRefuseCash;
import example.atm.outcomes.ATMShouldRetainBankCard;

public class InLotsOfTrouble extends MultiStepScenario {

    public void specifySteps() {
        given(new AccountIsOverOverdraftLimit());
        when(new UserRequestsCash());
        then(new ATMShouldRefuseCash());
        then(new ATMShouldRetainBankCard());
    }

}
TOP

Related Classes of example.atm.scenarios.InLotsOfTrouble

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.