chapter_002/src/test/java/ru/job4j/bank/BigBlackBankTest.java
@Test
    public void addAccountToUser() {
        User user1 = new User("John", "AB011589");
        Account account = new Account(100.0, "260000546454056");
        BigBlackBank bank = new BigBlackBank();
        bank.addUser(user1);
        bank.addAccountToUser(user1, account);
        assertTrue(bank.getUserAccounts(user1).contains(account));
    }
/**
     * Test add Account to user.
     */
Test add Account to user.
Test add Account to user .
@Test
    public void addAccountToUser() {
        User user1 = new User("John", "AB011589");
        Account account = new Account(100.0, "260000546454056");
        BigBlackBank bank = new BigBlackBank();
        bank.addUser(user1);
        bank.addAccountToUser(user1, account);
        assertTrue(bank.getUserAccounts(user1).contains(account));
    }
@ Test public void addAccountToUser ( ) { User user1 = new User ( "John" , "AB011589" ) ; Account account = new Account ( 100.0 , "260000546454056" ) ; BigBlackBank bank = new BigBlackBank ( ) ; bank . addUser ( user1 ) ; bank . addAccountToUser ( user1 , account ) ; assertTrue ( bank . getUserAccounts ( user1 ) . contains ( account ) ) ; }
Test add Account to user.
Test add Account to user .