Package Banking

Examples of Banking.Account


    if ((accountImpl = internal_findAccount(accountNumber)) != null) {
     
      try {
        // export
        AccountPOATie tie = new AccountPOATie(accountImpl);
        Account account = AccountHelper.narrow(this._poa().servant_to_reference(tie));
       
        return account;
       
      } catch (Exception e) {
        LOG.warn(e);
View Full Code Here


    CurrentAccount account = bank.createCurrentAccount(accountNumberOne, loanLimit);
    assertNotNull(account);
    assertEquals(accountNumberOne, account.accountNumber());
    assertEquals(loanLimit, account.loanLimit());
   
    Account foundAccount = bank.findAccount(accountNumberOne);
    assertEquals(true, CompareAccounts.compareAccounts(account, foundAccount));
  }
View Full Code Here

    SavingsAccount account = bank.createSavingsAccount(accountNumberOne, interestRate);
    assertNotNull(account);
    assertEquals(accountNumberOne, account.accountNumber());
    assertEquals(interestRate, account.interestRate());
   
    Account foundAccount = bank.findAccount(accountNumberOne);
    assertEquals(true, CompareAccounts.compareAccounts(account, foundAccount));
  }
View Full Code Here

  @Test
  public void findAccount() throws BankException {
    SavingsAccount account = bank.createSavingsAccount(accountNumberOne, interestRate);
    assertNotNull(account);
   
    Account foundAccount = bank.findAccount(accountNumberOne);
    assertEquals(true, CompareAccounts.compareAccounts(account, foundAccount));
  }
View Full Code Here

        // test
        String accNum = "0234.234432.50L";
        AccountImpl accountImpl = new AccountImpl(accNum);
        AccountPOATie tie = new AccountPOATie(accountImpl, rootpoa);
       
        Account account = tie._this(orb);
        org.omg.CORBA.Object objRef = orb.resolve_initial_references("NameService");
        NamingContextExt namingCtx = NamingContextExtHelper.narrow(objRef);

        NameComponent path[] = namingCtx.to_name( accNum );
        namingCtx.rebind(path, account);
View Full Code Here

        org.omg.CORBA.Object objRef = orb.resolve_initial_references("NameService");
        NamingContextExt namingCtx = NamingContextExtHelper.narrow(objRef);
  
        // resolve the object reference
        String accNum = "0234.234432.50L";
        Account account = AccountHelper.narrow(namingCtx.resolve_str(accNum));
        System.out.println("Obtained a handle on server object: " + account);
       
        account.deposit(100);
        System.out.println("yeeeee: " + account.balance());
  }
View Full Code Here

TOP

Related Classes of Banking.Account

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.