Package example.atm.scenarios

Source Code of example.atm.scenarios.HappyScenarioWithOverdraft

package example.atm.scenarios;

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

import example.atm.events.UserRequestsCash;
import example.atm.givens.AccountHasOverdraftPermission;
import example.atm.outcomes.ATMShouldDispenseCash;
import example.atm.outcomes.ATMShouldReturnBankCardToCustomer;
import example.atm.outcomes.AccountBalanceShouldBeReduced;

public class HappyScenarioWithOverdraft extends MultiStepScenario {

    public void specifySteps() {
        given(new AccountHasOverdraftPermission());
        when(new UserRequestsCash());
        then(new ATMShouldDispenseCash());
        then(new ATMShouldReturnBankCardToCustomer());
        then(new AccountBalanceShouldBeReduced());
    }
}
TOP

Related Classes of example.atm.scenarios.HappyScenarioWithOverdraft

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.