Research Article

Mutation Testing Approach to Negative Testing

Box 5

An example of a mutant generated by applying operator op.
atm = new ATM(1, 100000.00);
atm.getCard();
atm.getPIN(1234);
atm.displayMenuChoice() / “check balance, withdraw cash, quit”;
atm.getMenuChoice(“withdraw cash”);
atm.enterAmount(500);
atm.confirm();
atm.quit();
atm.ejectCard() / “card ejected”;
atm.dispenceCash() / 500;