Feature: Account Holder withdraws More Cash
As an Account Holder I want to withdraw cash from an ATM So that I can get money when the bank is closed
Given : the account balance is 100 #ATMScenario.createAccount(int)
And : the card is valid #ATMScenario.createCreditCard()
And : the machine contains 100 #ATMScenario.createATM(int)
When : the Account Holder requests 20 #ATMScenario.requestMoney(int)
Then : the ATM should dispense 20 #ATMScenario.checkMoney(int)
And : the account balance should be 90 #ATMScenario.checkBalance(int)
java.lang.AssertionError: Expected: is <80> got: <90> at org.junit.Assert.assertThat(Assert.java:780) at org.junit.Assert.assertThat(Assert.java:738) at net.masterthought.example.ATMScenario.checkBalance(ATMScenario.java:69) at ✽.And the account balance should be 90(net/masterthought/example/ATMK.feature:12)
And : the card should be returned #ATMScenario.cardShouldBeReturned()
And : its not implemented #ATMScenario.its_not_implemented()
And : the card is valid #ATMScenario.createCreditCard()