Package rooliebanking.rule

Examples of rooliebanking.rule.BankingRuleArgs


  protected static List<BankingRuleArgs> createRuleArgsToTest()
  {
    List<BankingRuleArgs> ruleArgsList = new LinkedList<BankingRuleArgs>();

    // Oscar
    BankingRuleArgs oscarRuleArgs = new BankingRuleArgs();
    oscarRuleArgs.setUser("Oscar");
    oscarRuleArgs.setAccountBalance(100D);
    oscarRuleArgs.setRequestedWithdrawlAmount(20D);
    oscarRuleArgs.setWithdrawlAmountToday(200D);
    oscarRuleArgs.setRequestedDepositAmount(500D);
    ruleArgsList.add(oscarRuleArgs);

    // Julia
    BankingRuleArgs juliaRuleArgs = new BankingRuleArgs();
    juliaRuleArgs.setUser("Julia");
    juliaRuleArgs.setAccountBalance(100D);
    juliaRuleArgs.setRequestedWithdrawlAmount(20D);
    juliaRuleArgs.setWithdrawlAmountToday(200D);
    juliaRuleArgs.setRequestedDepositAmount(30D);
    ruleArgsList.add(juliaRuleArgs);

    // Samuel
    BankingRuleArgs samuelRuleArgs = new BankingRuleArgs();
    samuelRuleArgs.setUser("Samuel");
    samuelRuleArgs.setAccountBalance(50D);
    samuelRuleArgs.setRequestedWithdrawlAmount(100D);
    samuelRuleArgs.setWithdrawlAmountToday(200D);
    samuelRuleArgs.setRequestedDepositAmount(99D);
    ruleArgsList.add(samuelRuleArgs);

    return ruleArgsList;

  }
View Full Code Here

TOP

Related Classes of rooliebanking.rule.BankingRuleArgs

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.