Package tests.jfun.models

Examples of tests.jfun.models.BankAccountDao


      dao = helper.getProxyComponentReturningInjected(BankAccountDao.class, dao,
          BankAccount.class, account_injection);
      yan.registerComponent("dao", dao);
      yan.registerValue(new Integer(10));
      yan.registerValue(new char[]{'a','b'});
      BankAccountDao mdao = (BankAccountDao)yan.getInstance("dao");
      assertEquals(mdao, mdao);
      MyBean mbean = mdao.getMyBean(1);
      assertEquals("apple", mbean.getName());
      BankAccount account = mdao.getAccount("a");
      assertEquals('a', account.getChar(0));
      assertEquals('b', account.getChar(1));
      assertEquals("apple", account.getId());
      assertEquals(10, account.getBalance());
    }
View Full Code Here

TOP

Related Classes of tests.jfun.models.BankAccountDao

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.